@@ -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); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $path = substr($path, strlen($prefix)); |
| 20 | 20 | $parts = array_filter( |
| 21 | 21 | explode('/', $path), |
| 22 | - function (string $part): bool { |
|
| 22 | + function(string $part): bool { |
|
| 23 | 23 | return '' !== $part; |
| 24 | 24 | }, |
| 25 | 25 | ); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - return $prefix . implode('/', $tokens); |
|
| 45 | + return $prefix.implode('/', $tokens); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @throws \InvalidArgumentException If $key is invalid |
| 97 | 97 | */ |
| 98 | - public function mtime(string $key): int|bool; |
|
| 98 | + public function mtime(string $key): int | bool; |
|
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * Returns the checksum of the specified file's content. |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * @throws \InvalidArgumentException If $key is invalid |
| 136 | 136 | */ |
| 137 | - public function mimeType(string $key): string|bool; |
|
| 137 | + public function mimeType(string $key): string | bool; |
|
| 138 | 138 | |
| 139 | 139 | public function isDirectory(string $key): bool; |
| 140 | 140 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * {@inheritdoc} |
| 181 | 181 | */ |
| 182 | - public function mtime(string $key): int|bool |
|
| 182 | + public function mtime(string $key): int | bool |
|
| 183 | 183 | { |
| 184 | 184 | self::assertValidKey($key); |
| 185 | 185 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | /** |
| 256 | 256 | * {@inheritdoc} |
| 257 | 257 | */ |
| 258 | - public function mimeType(string $key): string|bool |
|
| 258 | + public function mimeType(string $key): string | bool |
|
| 259 | 259 | { |
| 260 | 260 | self::assertValidKey($key); |
| 261 | 261 | |