@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * {@inheritdoc} |
69 | 69 | */ |
70 | - public function read(string $key): string|bool |
|
70 | + public function read(string $key): string | bool |
|
71 | 71 | { |
72 | 72 | $this->ensureBucketExists(); |
73 | 73 | $options = $this->getOptions($key); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $this->ensureBucketExists(); |
97 | 97 | $options = $this->getOptions( |
98 | 98 | $targetKey, |
99 | - ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)] |
|
99 | + ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)] |
|
100 | 100 | ); |
101 | 101 | |
102 | 102 | try { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * {@inheritdoc} |
113 | 113 | */ |
114 | - public function write(string $key, mixed $content): int|bool |
|
114 | + public function write(string $key, mixed $content): int | bool |
|
115 | 115 | { |
116 | 116 | $this->ensureBucketExists(); |
117 | 117 | $options = $this->getOptions($key, ['Body' => $content]); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * {@inheritdoc} |
150 | 150 | */ |
151 | - public function mtime(string $key): int|bool |
|
151 | + public function mtime(string $key): int | bool |
|
152 | 152 | { |
153 | 153 | try { |
154 | 154 | $result = $this->service->headObject($this->getOptions($key)); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | } |
174 | 174 | } |
175 | 175 | |
176 | - public function mimeType(string $key): bool|string |
|
176 | + public function mimeType(string $key): bool | string |
|
177 | 177 | { |
178 | 178 | try { |
179 | 179 | $result = $this->service->headObject($this->getOptions($key)); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | { |
237 | 237 | $result = $this->service->listObjects([ |
238 | 238 | 'Bucket' => $this->bucket, |
239 | - 'Prefix' => rtrim($this->computePath($key), '/') . '/', |
|
239 | + 'Prefix' => rtrim($this->computePath($key), '/').'/', |
|
240 | 240 | 'MaxKeys' => 1, |
241 | 241 | ]); |
242 | 242 | if (isset($result['Contents'])) { |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | return ltrim(substr($path, strlen($this->options['directory'])), '/'); |
316 | 316 | } |
317 | 317 | |
318 | - private function guessContentType(mixed $content): bool|string |
|
318 | + private function guessContentType(mixed $content): bool | string |
|
319 | 319 | { |
320 | 320 | $fileInfo = new \finfo(FILEINFO_MIME_TYPE); |
321 | 321 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @param int $count The number of bytes |
28 | 28 | */ |
29 | - public function read(int $count): string|bool; |
|
29 | + public function read(int $count): string | bool; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Writes the specified data. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @return array<string, mixed>|false |
81 | 81 | */ |
82 | - public function stat(): array|bool; |
|
82 | + public function stat(): array | bool; |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Retrieve the underlying resource. |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * @return int|false Returns the file modified time. |
95 | 95 | */ |
96 | - public function getMtime(): int|bool |
|
96 | + public function getMtime(): int | bool |
|
97 | 97 | { |
98 | 98 | return $this->mtime = $this->filesystem->mtime($this->key); |
99 | 99 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * @return int|bool The number of bytes that were written into the file, or |
110 | 110 | * FALSE on failure |
111 | 111 | */ |
112 | - public function setContent(string $content, array $metadata = []): int|bool |
|
112 | + public function setContent(string $content, array $metadata = []): int | bool |
|
113 | 113 | { |
114 | 114 | $this->content = $content; |
115 | 115 | $this->setMetadata($metadata); |