Completed
Push — master ( 64cc65...e3f897 )
by Amin
03:07
created
src/AWS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function __construct(array $config)
30 30
     {
31
-        $this->s3 = new S3Client($config);;
31
+        $this->s3 = new S3Client($config); ;
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/FileManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,9 @@  discard block
 block discarded – undo
185 185
     {
186 186
         static::makeDir($destination);
187 187
         foreach (scandir($source) as $file) {
188
-            if (in_array($file, [".", ".."])) continue;
188
+            if (in_array($file, [".", ".."])) {
189
+                continue;
190
+            }
189 191
             if (copy($source . $file, $destination . $file)) {
190 192
                 unlink($source . $file);
191 193
             }
@@ -207,7 +209,9 @@  discard block
 block discarded – undo
207 209
         }
208 210
 
209 211
         foreach (scandir($dir) as $item) {
210
-            if (in_array($item, [".", ".."])) continue;
212
+            if (in_array($item, [".", ".."])) {
213
+                continue;
214
+            }
211 215
             if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) {
212 216
                 return false;
213 217
             }
Please login to merge, or discard this patch.
src/AutoRepresentations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
         $h = $this->getDimensions()[1];
144 144
 
145
-        $this->side_values = array_values(array_filter($this->side_values, function ($height) use ($h) {
145
+        $this->side_values = array_values(array_filter($this->side_values, function($height) use ($h) {
146 146
             return $height < $h;
147 147
         }));
148 148
     }
Please login to merge, or discard this patch.
src/GoogleCloudStorage.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function __construct(array $config, string $bucket, $userProject = false)
33 33
     {
34
-        try{
34
+        try {
35 35
             $storage = new StorageClient($config);
36 36
             $this->bucket = $storage->bucket($bucket, $userProject);
37
-        }catch (\Exception $e){
37
+        } catch (\Exception $e) {
38 38
             throw new InvalidArgumentException(sprintf("Invalid inputs:\n %s", $e->getMessage()), $e->getCode(), $e);
39 39
         }
40 40
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function uploadDirectory(string $dir, array $options = [])
47 47
     {
48
-        try{
48
+        try {
49 49
             foreach (scandir($dir) as $key => $filename) {
50 50
                 $path = $dir . DIRECTORY_SEPARATOR . $filename;
51 51
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                     $this->bucket->upload(fopen($path, 'r'), $options);
54 54
                 }
55 55
             }
56
-        }catch (\Exception $e){
56
+        } catch (\Exception $e) {
57 57
             throw new RuntimeException(sprintf("There wan an error during uploading files:\n %s", $e->getMessage()), $e->getCode(), $e);
58 58
         }
59 59
     }
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function download(string $name, string $save_to)
67 67
     {
68
-        try{
68
+        try {
69 69
             return $this->bucket->object($name)
70 70
                 ->downloadToFile($save_to);
71
-        }catch (\Exception $e){
71
+        } catch (\Exception $e) {
72 72
             throw new RuntimeException(sprintf("There wan an error during fetch the file:\n %s", $e->getMessage()), $e->getCode(), $e);
73 73
         }
74 74
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         try{
35 35
             $storage = new StorageClient($config);
36 36
             $this->bucket = $storage->bucket($bucket, $userProject);
37
-        }catch (\Exception $e){
37
+        } catch (\Exception $e){
38 38
             throw new InvalidArgumentException(sprintf("Invalid inputs:\n %s", $e->getMessage()), $e->getCode(), $e);
39 39
         }
40 40
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                     $this->bucket->upload(fopen($path, 'r'), $options);
54 54
                 }
55 55
             }
56
-        }catch (\Exception $e){
56
+        } catch (\Exception $e){
57 57
             throw new RuntimeException(sprintf("There wan an error during uploading files:\n %s", $e->getMessage()), $e->getCode(), $e);
58 58
         }
59 59
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         try{
69 69
             return $this->bucket->object($name)
70 70
                 ->downloadToFile($save_to);
71
-        }catch (\Exception $e){
71
+        } catch (\Exception $e){
72 72
             throw new RuntimeException(sprintf("There wan an error during fetch the file:\n %s", $e->getMessage()), $e->getCode(), $e);
73 73
         }
74 74
     }
Please login to merge, or discard this patch.