Passed
Push — master ( 63c9ea...e1ec1e )
by Amin
03:49
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/Helper.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@  discard block
 block discarded – undo
131 131
     public static function moveDir(string $source, string $destination)
132 132
     {
133 133
         foreach (scandir($source) as $file) {
134
-            if (in_array($file, [".", ".."])) continue;
134
+            if (in_array($file, [".", ".."])) {
135
+                continue;
136
+            }
135 137
             if (copy($source . $file, $destination . $file)) {
136 138
                 unlink($source . $file);
137 139
             }
@@ -153,7 +155,9 @@  discard block
 block discarded – undo
153 155
         }
154 156
 
155 157
         foreach (scandir($dir) as $item) {
156
-            if (in_array($item, [".", ".."])) continue;
158
+            if (in_array($item, [".", ".."])) {
159
+                continue;
160
+            }
157 161
             if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) {
158 162
                 return false;
159 163
             }
Please login to merge, or discard this patch.
src/Export.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     {
122 122
         $basename = Helper::randomString();
123 123
 
124
-        if (null !== $path){
124
+        if (null !== $path) {
125 125
             $basename = pathinfo($path)["basename"];
126 126
         }
127 127
 
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
         $aws = new AWS($config);
135 135
         $aws->uploadAndDownloadDirectory($tmp_dir, $dest);
136 136
 
137
-        if(null !== $path){
137
+        if (null !== $path) {
138 138
             $destination = pathinfo($path)["dirname"] . DIRECTORY_SEPARATOR;
139 139
             Helper::makeDir($destination);
140 140
             Helper::moveDir($tmp_dir, $destination);
141
-        }else{
141
+        } else {
142 142
             Helper::deleteDirectory($tmp_dir);
143 143
         }
144 144
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
             $destination = pathinfo($path)["dirname"] . DIRECTORY_SEPARATOR;
139 139
             Helper::makeDir($destination);
140 140
             Helper::moveDir($tmp_dir, $destination);
141
-        }else{
141
+        } else{
142 142
             Helper::deleteDirectory($tmp_dir);
143 143
         }
144 144
 
Please login to merge, or discard this patch.