static analysis

This commit is contained in:
Dylan K. Taylor
2017-07-13 16:45:24 +01:00
parent 23866359c9
commit 4d874e7e78
6 changed files with 7 additions and 6 deletions

View File

@ -223,7 +223,7 @@ class McRegion extends BaseLevelProvider{
$isValid = (file_exists($path . "/level.dat") and is_dir($path . "/region/"));
if($isValid){
$files = array_filter(scandir($path . "/region/"), function($file){
$files = array_filter(scandir($path . "/region/", SCANDIR_SORT_NONE), function($file){
return substr($file, strrpos($file, ".") + 1, 2) === "mc"; //region file
});