@@ -37,6 +37,6 @@ |
||
37 | 37 | // Get file stream from remote url |
38 | 38 | $resource = fopen($remoteUrl, 'r'); |
39 | 39 | |
40 | - return (bool)$this->filesystem->getAdapter()->writeStream($path, $resource, $config); |
|
40 | + return (bool) $this->filesystem->getAdapter()->writeStream($path, $resource, $config); |
|
41 | 41 | } |
42 | 42 | } |
@@ -34,6 +34,6 @@ |
||
34 | 34 | $config->setFallback($this->filesystem->getConfig()); |
35 | 35 | } |
36 | 36 | |
37 | - return (bool)$this->filesystem->getAdapter()->writeFile($path, $filePath, $config); |
|
37 | + return (bool) $this->filesystem->getAdapter()->writeFile($path, $filePath, $config); |
|
38 | 38 | } |
39 | 39 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | if ($this->app->runningInConsole()) { |
26 | 26 | $this->publishes([ |
27 | - __DIR__ . '/config/config.php' => config_path('aliyun-oss.php'), |
|
27 | + __DIR__.'/config/config.php' => config_path('aliyun-oss.php'), |
|
28 | 28 | ], 'config'); |
29 | 29 | } |
30 | 30 | $this->mergeConfigFrom( |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | */ |
282 | 282 | public function deleteDir($dirname) |
283 | 283 | { |
284 | - $dirname = rtrim($this->applyPathPrefix($dirname), '/') . '/'; |
|
284 | + $dirname = rtrim($this->applyPathPrefix($dirname), '/').'/'; |
|
285 | 285 | $dirObjects = $this->listDirObjects($dirname, true); |
286 | 286 | |
287 | 287 | if (count($dirObjects['objects']) > 0) { |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | public function read($path) |
433 | 433 | { |
434 | 434 | $result = $this->readObject($path); |
435 | - $result['contents'] = (string)$result['raw_contents']; |
|
435 | + $result['contents'] = (string) $result['raw_contents']; |
|
436 | 436 | unset($result['raw_contents']); |
437 | 437 | return $result; |
438 | 438 | } |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | public function getUrl($path) |
560 | 560 | { |
561 | 561 | // if (!$this->has($path)) throw new FileNotFoundException($path.' not found'); |
562 | - return ($this->ssl ? 'https://' : 'http://') . ($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket . '.' . $this->endPoint) . '/' . ltrim($path, '/'); |
|
562 | + return ($this->ssl ? 'https://' : 'http://').($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket.'.'.$this->endPoint).'/'.ltrim($path, '/'); |
|
563 | 563 | } |
564 | 564 | |
565 | 565 | /** |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | protected function logErr($func, $e) |
684 | 684 | { |
685 | 685 | if ($this->debug) { |
686 | - Log::error($func . ": FAILED"); |
|
686 | + Log::error($func.": FAILED"); |
|
687 | 687 | Log::error($e->getMessage()); |
688 | 688 | } |
689 | 689 | } |