|
@@ -22,10 +22,10 @@ |
|
|
block discarded – undo |
|
22
|
22
|
|
|
23
|
23
|
public function __invoke(string $path) |
|
24
|
24
|
{ |
|
25
|
|
- if ($this->isOptional && file_exists($path . '/.do_not_clear')) { |
|
|
25
|
+ if ($this->isOptional && file_exists($path.'/.do_not_clear')) { |
|
26
|
26
|
return; |
|
27
|
27
|
} |
|
28
|
|
- foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '*') as $file) { |
|
|
28
|
+ foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'*') as $file) { |
|
29
|
29
|
is_dir((string) $file) ? $this->__invoke((string) $file) : unlink((string) $file); |
|
30
|
30
|
@rmdir((string) $file); |
|
31
|
31
|
} |
Please login to merge, or discard this patch.