@@ -20,10 +20,10 @@ |
||
20 | 20 | |
21 | 21 | public function __invoke(string $path) |
22 | 22 | { |
23 | - if ($this->isOptional && file_exists($path . '/.do_not_clear')) { |
|
23 | + if ($this->isOptional && file_exists($path.'/.do_not_clear')) { |
|
24 | 24 | return; |
25 | 25 | } |
26 | - foreach (\glob(\rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '*') as $file) { |
|
26 | + foreach (\glob(\rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'*') as $file) { |
|
27 | 27 | \is_dir($file) ? $this->__invoke($file) : \unlink($file); |
28 | 28 | @\rmdir($file); |
29 | 29 | } |