@@ -28,7 +28,7 @@ |
||
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 | /** |
@@ -121,7 +121,7 @@ discard block |
||
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 |
||
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 |