Replace disallowed operators in src/utils/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:02:26 +00:00
parent c47dfa1fb8
commit 282b430b1f
10 changed files with 34 additions and 34 deletions

View File

@@ -81,7 +81,7 @@ final class Filesystem{
if(is_dir($dir)){
$objects = Utils::assumeNotFalse(scandir($dir, SCANDIR_SORT_NONE), "scandir() shouldn't return false when is_dir() returns true");
foreach($objects as $object){
if($object !== "." and $object !== ".."){
if($object !== "." && $object !== ".."){
$fullObject = Path::join($dir, $object);
if(is_dir($fullObject)){
self::recursiveUnlink($fullObject);