mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Replace disallowed operators in tools/
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user