@@ -185,12 +185,12 @@ discard block |
||
| 185 | 185 | public function getUrl(string $path): string |
| 186 | 186 | { |
| 187 | 187 | $segments = $this->parseUrl($path); |
| 188 | - $query = empty($segments['query']) ? '' : '?' . $segments['query']; |
|
| 188 | + $query = empty($segments['query']) ? '' : '?'.$segments['query']; |
|
| 189 | 189 | |
| 190 | - return $this->normalizeHost($this->domain) . ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/') . $query; |
|
| 190 | + return $this->normalizeHost($this->domain).ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/').$query; |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - protected function getMetadata($path): FileAttributes|array |
|
| 193 | + protected function getMetadata($path): FileAttributes | array |
|
| 194 | 194 | { |
| 195 | 195 | $result = $this->getBucketManager()->stat($this->bucket, $path); |
| 196 | 196 | $result[0]['key'] = $path; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return $this->normalizeFileInfo($result[0]); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - public function fetch(string $path, string $url): bool|array |
|
| 201 | + public function fetch(string $path, string $url): bool | array |
|
| 202 | 202 | { |
| 203 | 203 | [$response, $error] = $this->getBucketManager()->fetch($url, $this->bucket, $path); |
| 204 | 204 | |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | $domain = "http://{$domain}"; |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | - return rtrim($domain, '/') . '/'; |
|
| 305 | + return rtrim($domain, '/').'/'; |
|
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | protected static function parseUrl($url): array |