We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6822556 commit bade42eCopy full SHA for bade42e
cleanup.php
@@ -27,14 +27,14 @@
27
28
function removeDirectory(string $dir): bool
29
{
30
- if (! is_dir($dir)) {
+ if (!is_dir($dir)) {
31
return false;
32
}
33
34
- $files = array_diff(scandir($dir), [' . ', ' ..']);
+ $files = array_diff(scandir($dir), ['.', '..']);
35
36
foreach ($files as $file) {
37
- $path = $dir.DIRECTORY_SEPARATOR.$file;
+ $path = $dir . DIRECTORY_SEPARATOR . $file;
38
39
if (is_dir($path)) {
40
removeDirectory($path);
0 commit comments