Skip to content

Commit 1bd5d55

Browse files
committed
Renamed delete_directory_recursive function to be more explicit
1 parent a089c97 commit 1bd5d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/MinifyApplicationCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function removeIgnoredFilesAndFolders(string $appPath): void
7474

7575
if (file_exists($fullPath)) {
7676
if (is_dir($fullPath)) {
77-
$this->delete_directory($fullPath);
77+
$this->delete_directory_recursive($fullPath);
7878
} else {
7979
array_map('unlink', glob($fullPath));
8080
}
@@ -86,7 +86,7 @@ protected function removeIgnoredFilesAndFolders(string $appPath): void
8686
}
8787
}
8888

89-
private function delete_directory($dir)
89+
private function delete_directory_recursive($dir)
9090
{
9191
if (! file_exists($dir)) {
9292
return true;
@@ -101,7 +101,7 @@ private function delete_directory($dir)
101101
continue;
102102
}
103103

104-
if (! $this->delete_directory($dir.'/'.$item)) {
104+
if (! $this->delete_directory_recursive($dir.'/'.$item)) {
105105
return false;
106106
}
107107
}

0 commit comments

Comments
 (0)