@@ -42,7 +42,9 @@ |
||
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 | } |
@@ -88,7 +88,7 @@ |
||
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 | } |
@@ -46,7 +46,7 @@ |
||
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 | } |