Passed
Push — master ( 3a6957...b2df60 )
by Amin
03:49
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.
src/Utiles.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         foreach ($array as $key => $value) {
47 47
             if(is_string($key)){
48 48
                 array_push($new, $start_with . $key, $value);
49
-            }else{
49
+            } else{
50 50
                 $new = null;
51 51
                 break;
52 52
             }
Please login to merge, or discard this patch.