Completed
Push — master ( b92e96...5dcae1 )
by frey
105:28 queued 99:19
created
src/Adapter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $this->bucket = $config['bucket'];
40 40
         $this->debug  = $config['debug'];
41 41
 
42
-        $this->setPathPrefix($config['protocol'] . '://' . $config['domain'] . '/');
42
+        $this->setPathPrefix($config['protocol'].'://'.$config['domain'].'/');
43 43
 
44 44
         Cosapi::setTimeout($config['timeout']);
45 45
         Cosapi::setRegion($config['region']);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function rename($path, $newpath)
173 173
     {
174
-        return (bool)$this->normalizeResponse(
174
+        return (bool) $this->normalizeResponse(
175 175
             Cosapi::moveFile($this->getBucket(), $path, $newpath, 1)
176 176
         );
177 177
     }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function copy($path, $newpath)
186 186
     {
187
-        return (bool)$this->normalizeResponse(
187
+        return (bool) $this->normalizeResponse(
188 188
             Cosapi::copyFile($this->getBucket(), $path, $newpath, 1)
189 189
         );
190 190
     }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function delete($path)
198 198
     {
199
-        return (bool)$this->normalizeResponse(
199
+        return (bool) $this->normalizeResponse(
200 200
             Cosapi::delFile($this->getBucket(), $path)
201 201
         );
202 202
     }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function deleteDir($dirname)
210 210
     {
211
-        return (bool)$this->normalizeResponse(
211
+        return (bool) $this->normalizeResponse(
212 212
             Cosapi::delFolder($this->getBucket(), $dirname)
213 213
         );
214 214
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $visibility = ($visibility === AdapterInterface::VISIBILITY_PUBLIC)
238 238
             ? 'eWPrivateRPublic' : 'eWRPrivate';
239 239
 
240
-        return (bool)$this->normalizeResponse(
240
+        return (bool) $this->normalizeResponse(
241 241
             Cosapi::update($this->getBucket(), $path, null, $visibility)
242 242
         );
243 243
     }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     public function has($path)
251 251
     {
252 252
         try {
253
-            return (bool)$this->getMetadata($path);
253
+            return (bool) $this->getMetadata($path);
254 254
         } catch (RuntimeException $exception) {
255 255
             return false;
256 256
         }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         file_put_contents($temporaryPath, $content);
382 382
 
383 383
         // The file is automatically removed when closed, or when the script ends.
384
-        register_shutdown_function(function () use ($temporaryPath) {
384
+        register_shutdown_function(function() use ($temporaryPath) {
385 385
             unlink($temporaryPath);
386 386
         });
387 387
 
Please login to merge, or discard this patch.