@@ -112,6 +112,7 @@ |
||
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * {@inheritdoc} |
| 115 | + * @param string $path |
|
| 115 | 116 | */ |
| 116 | 117 | public function getVisibility($path) |
| 117 | 118 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public function read($path) |
| 26 | 26 | { |
| 27 | 27 | $result = $this->readObject($path); |
| 28 | - $result['contents'] = (string)$result['raw_contents']; |
|
| 28 | + $result['contents'] = (string) $result['raw_contents']; |
|
| 29 | 29 | unset($result['raw_contents']); |
| 30 | 30 | return $result; |
| 31 | 31 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $contents = $dirObjects["objects"]; |
| 55 | 55 | |
| 56 | 56 | $result = array_map([$this, 'normalizeResponse'], $contents); |
| 57 | - $result = array_filter($result, function ($value) { |
|
| 57 | + $result = array_filter($result, function($value) { |
|
| 58 | 58 | return $value['path'] !== false; |
| 59 | 59 | }); |
| 60 | 60 | |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | */ |
| 164 | 164 | public function deleteDir($dirname) |
| 165 | 165 | { |
| 166 | - $dirname = rtrim($this->applyPathPrefix($dirname), '/') . '/'; |
|
| 166 | + $dirname = rtrim($this->applyPathPrefix($dirname), '/').'/'; |
|
| 167 | 167 | $dirObjects = $this->listDirObjects($dirname, true); |
| 168 | 168 | |
| 169 | 169 | if (count($dirObjects['objects']) > 0) { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | public function getUrl($path) |
| 92 | 92 | { |
| 93 | 93 | // if (!$this->has($path)) throw new FileNotFoundException($path.' not found'); |
| 94 | - return ($this->ssl ? 'https://' : 'http://') . ($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket . '.' . $this->endPoint) . '/' . ltrim($path, '/'); |
|
| 94 | + return ($this->ssl ? 'https://' : 'http://').($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket.'.'.$this->endPoint).'/'.ltrim($path, '/'); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | protected function logErr($func, $e) |
| 312 | 312 | { |
| 313 | 313 | if ($this->debug) { |
| 314 | - Log::error($func . ": FAILED"); |
|
| 314 | + Log::error($func.": FAILED"); |
|
| 315 | 315 | Log::error($e->getMessage()); |
| 316 | 316 | } |
| 317 | 317 | } |