Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b846a28

Browse files
committed
slimming down the ignoreDir function
1 parent ba52d56 commit b846a28

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

builder/lib/builder.lib.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,15 +709,13 @@ protected function moveStaticFile($fileName,$copy = "") {
709709
* @return {Boolean} whether the directory should be ignored
710710
*/
711711
protected function ignoreDir($fileName) {
712-
$y = false;
713712
foreach($this->id as $dir) {
714713
$pos = strpos($fileName,DIRECTORY_SEPARATOR.$dir.DIRECTORY_SEPARATOR);
715714
if ($pos !== false) {
716-
$y = true;
717-
break;
715+
return true;
718716
}
719717
}
720-
return $y;
718+
return false;
721719
}
722720

723721
/**

0 commit comments

Comments
 (0)