File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,17 +157,17 @@ private function createTempDirectory($prefix = '') {
157157 */
158158 private function deleteDirectory ($ directory ) {
159159 $ dir = new RecursiveDirectoryIterator ($ directory , FilesystemIterator::SKIP_DOTS );
160- $ files = new RecursiveIteratorIterator ($ dir , RecursiveIteratorIterator::CHILD_FIRST );
160+ $ paths = new RecursiveIteratorIterator ($ dir , RecursiveIteratorIterator::CHILD_FIRST );
161161
162- foreach ($ paths as $ path ) {
162+ foreach ($ paths as $ path ) {
163163 if ($ path ->isDir () && !$ path ->isLink ()) {
164164 rmdir ($ path ->getPathname ());
165165 } else {
166- unlink ($ path ->getPathname ())
166+ unlink ($ path ->getPathname ());
167167 }
168168 }
169169
170- rmdir ($ directory ;
170+ rmdir ($ directory) ;
171171 }
172172
173173 /**
You can’t perform that action at this time.
0 commit comments