Passed
Pull Request — master (#44)
by
unknown
03:31
created
src/File.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,9 @@
 block discarded – undo
42 42
         if (is_dir($dir)) {
43 43
             $size = 0;
44 44
             foreach (scandir($dir) as $file) {
45
-                if (in_array($file, [".", ".."])) continue;
45
+                if (in_array($file, [".", ".."])) {
46
+                    continue;
47
+                }
46 48
                 $filename = $dir . DIRECTORY_SEPARATOR . $file;
47 49
                 $size += is_file($filename) ? filesize($filename) : static::directorySize($filename);
48 50
             }
Please login to merge, or discard this patch.
src/Clouds/GoogleCloudStorage.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         }
89 89
         try{
90 90
             return $this->storage->bucket($options['bucket'], $options['user_project'] ?? false);
91
-        }catch (\Exception $e){
91
+        } catch (\Exception $e){
92 92
             throw new RuntimeException(sprintf("An error occurred while opening the bucket: %s", $e->getMessage()), $e->getCode(), $e);
93 93
         }
94 94
     }
Please login to merge, or discard this patch.