Replace disallowed operators in tools/

This commit is contained in:
Dylan K. Taylor
2022-01-20 16:48:06 +00:00
parent 9c328690f8
commit 4d55935bd8
3 changed files with 4 additions and 4 deletions

View File

@@ -62,12 +62,12 @@ function find_regions_recursive(string $dir, array &$files) : void{
return;
}
foreach($dirFiles as $file){
if($file === "." or $file === ".."){
if($file === "." || $file === ".."){
continue;
}
$fullPath = $dir . "/" . $file;
if(
in_array(pathinfo($fullPath, PATHINFO_EXTENSION), SUPPORTED_EXTENSIONS, true) and
in_array(pathinfo($fullPath, PATHINFO_EXTENSION), SUPPORTED_EXTENSIONS, true) &&
is_file($fullPath)
){
$files[$fullPath] = filesize($fullPath);