Completed
Push — app ( d2c122...aa71e8 )
by Akihito
05:34
created
src/Unlink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.