| @@ -67,7 +67,7 @@ | ||
| 67 | 67 | |
| 68 | 68 | public function performSendingRequest() | 
| 69 | 69 |      { | 
| 70 | -        for (; ;) { | |
| 70 | +        for (;;) { | |
| 71 | 71 | $active = null; | 
| 72 | 72 | |
| 73 | 73 | $mrc = $this->doCurlMulti(); | 
| @@ -39,7 +39,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | |
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | */ | 
| 24 | 24 | public function boot() | 
| 25 | 25 |      { | 
| 26 | - $source = realpath(__DIR__ . '/filesystems.php'); | |
| 26 | + $source = realpath(__DIR__.'/filesystems.php'); | |
| 27 | 27 | |
| 28 | 28 |          if ($this->app instanceof LaravelApplication) { | 
| 29 | 29 |              if ($this->app->runningInConsole()) { | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 |          $this->app->make('filesystem') | 
| 39 | -                  ->extend('cosv4', function ($app, $config) { | |
| 39 | +                  ->extend('cosv4', function($app, $config) { | |
| 40 | 40 | return new Filesystem(new Adapter($config)); | 
| 41 | 41 | }) | 
| 42 | 42 |                    ->disk('cosv4') |