@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | - protected function getMetadata($path): FileAttributes|array |
|
| 185 | + protected function getMetadata($path): FileAttributes | array |
|
| 186 | 186 | { |
| 187 | 187 | $result = $this->getBucketManager()->stat($this->bucket, $path); |
| 188 | 188 | $result[0]['key'] = $path; |
@@ -193,13 +193,13 @@ discard block |
||
| 193 | 193 | public function getUrl(string $path): string |
| 194 | 194 | { |
| 195 | 195 | $segments = $this->parseUrl($path); |
| 196 | - $query = empty($segments['query']) ? '' : '?' . $segments['query']; |
|
| 196 | + $query = empty($segments['query']) ? '' : '?'.$segments['query']; |
|
| 197 | 197 | |
| 198 | - return $this->normalizeHost($this->domain) . ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/') . $query; |
|
| 198 | + return $this->normalizeHost($this->domain).ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/').$query; |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | |
| 202 | - public function fetch(string $path, string $url): bool|array |
|
| 202 | + public function fetch(string $path, string $url): bool | array |
|
| 203 | 203 | { |
| 204 | 204 | [$response, $error] = $this->getBucketManager()->fetch($url, $this->bucket, $path); |
| 205 | 205 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | /** |
| 214 | 214 | * For laravel FilesystemAdapter. |
| 215 | 215 | */ |
| 216 | - public function getTemporaryUrl($path, int|string|\DateTimeInterface $expiration): string |
|
| 216 | + public function getTemporaryUrl($path, int | string | \DateTimeInterface $expiration): string |
|
| 217 | 217 | { |
| 218 | 218 | if ($expiration instanceof \DateTimeInterface) { |
| 219 | 219 | $expiration = $expiration->getTimestamp(); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $domain = "http://{$domain}"; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | - return rtrim($domain, '/') . '/'; |
|
| 322 | + return rtrim($domain, '/').'/'; |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | protected static function parseUrl($url): array |