File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -86,26 +86,26 @@ protected function removeIgnoredFilesAndFolders(string $appPath): void
8686 }
8787 }
8888
89- private function deleteDirectoryRecursive ($ dir )
89+ private function deleteDirectoryRecursive (string $ directory )
9090 {
91- if (! file_exists ($ dir )) {
91+ if (! file_exists ($ directory )) {
9292 return true ;
9393 }
9494
95- if (! is_dir ($ dir )) {
96- return unlink ($ dir );
95+ if (! is_dir ($ directory )) {
96+ return unlink ($ directory );
9797 }
9898
99- foreach (scandir ($ dir ) as $ item ) {
99+ foreach (scandir ($ directory ) as $ item ) {
100100 if ($ item == '. ' || $ item == '.. ' ) {
101101 continue ;
102102 }
103103
104- if (! $ this ->deleteDirectoryRecursive ($ dir .'/ ' .$ item )) {
104+ if (! $ this ->deleteDirectoryRecursive ($ directory .'/ ' .$ item )) {
105105 return false ;
106106 }
107107 }
108108
109- return rmdir ($ dir );
109+ return rmdir ($ directory );
110110 }
111111}
You can’t perform that action at this time.
0 commit comments