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 f304a0a commit 06bee88Copy full SHA for 06bee88
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), ['.', '..']);
35
36
foreach ($files as $file) {
37
- $path = realpath($dir . DIRECTORY_SEPARATOR . $file);
+ $path = realpath($dir.DIRECTORY_SEPARATOR.$file);
38
39
// Als realpath faalt (bv. bestand is al weg), sla over
40
if ($path === false) {
@@ -50,4 +50,3 @@ function removeDirectory(string $dir): bool
50
51
return rmdir($dir);
52
53
-
0 commit comments