Skip to content

Commit e8492d6

Browse files
committed
PSR12
1 parent 0a32e86 commit e8492d6

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

class/Common/FilesManagement.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,9 @@ public static function deleteDirectory($src)
103103
if (!$success = self::deleteDirectory($fileInfo->getRealPath())) {
104104
break;
105105
}
106-
} else {
107-
// delete the file
108-
if (!($success = unlink($fileInfo->getRealPath()))) {
109-
break;
106+
} elseif (!($success = unlink($fileInfo->getRealPath()))) {
107+
break; // delete the file
110108
}
111-
}
112109
}
113110
// now delete this (sub)directory if all the files are gone
114111
if ($success) {

0 commit comments

Comments
 (0)