Skip to content

Commit bade42e

Browse files
Fix unnecessary spaces in array_diff function call
1 parent 6822556 commit bade42e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cleanup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828
function removeDirectory(string $dir): bool
2929
{
30-
if (! is_dir($dir)) {
30+
if (!is_dir($dir)) {
3131
return false;
3232
}
3333

34-
$files = array_diff(scandir($dir), [' . ', ' ..']);
34+
$files = array_diff(scandir($dir), ['.', '..']);
3535

3636
foreach ($files as $file) {
37-
$path = $dir.DIRECTORY_SEPARATOR.$file;
37+
$path = $dir . DIRECTORY_SEPARATOR . $file;
3838

3939
if (is_dir($path)) {
4040
removeDirectory($path);

0 commit comments

Comments
 (0)