@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $ref = $exists['metadata']['ref']; |
88 | 88 | |
89 | - if ($key = array_search((string) $file->getId(), array_column($ref, 'id'), true)) { |
|
89 | + if ($key = array_search((string)$file->getId(), array_column($ref, 'id'), true)) { |
|
90 | 90 | unset($ref[$key]); |
91 | 91 | } |
92 | 92 | |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * |
173 | 173 | * @return array |
174 | 174 | */ |
175 | - protected function getFileById(ObjectId $id): ?array |
|
175 | + protected function getFileById(ObjectId $id): ? array |
|
176 | 176 | { |
177 | 177 | return $this->gridfs->findOne(['_id' => $id]); |
178 | 178 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * |
185 | 185 | * @return array |
186 | 186 | */ |
187 | - protected function getFileByHash(string $hash): ?array |
|
187 | + protected function getFileByHash(string $hash): ? array |
|
188 | 188 | { |
189 | 189 | return $this->gridfs->findOne(['md5' => $hash]); |
190 | 190 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $meta['share_ref'] = []; |
216 | 216 | } |
217 | 217 | |
218 | - set_time_limit((int) ($file->getSize() / 15339168)); |
|
218 | + set_time_limit((int)($file->getSize() / 15339168)); |
|
219 | 219 | $id = new ObjectId(); |
220 | 220 | |
221 | 221 | //somehow mongo-connector does not catch metadata when set during uploadFromStream() |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return AdapterInterface |
85 | 85 | */ |
86 | - public function injectAdapter($adapter, ?string $name = null): AdapterAwareInterface |
|
86 | + public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface |
|
87 | 87 | { |
88 | 88 | if (!($adapter instanceof AdapterInterface)) { |
89 | 89 | throw new Exception('adapter needs to implement AdapterInterface'); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @return bool |
156 | 156 | */ |
157 | - public function hasFile(File $file, array $attributes, ?string $adapter = null): bool |
|
157 | + public function hasFile(File $file, array $attributes, ?string $adapter = null) : bool |
|
158 | 158 | { |
159 | 159 | if (null === $adapter) { |
160 | 160 | $adapter = 'gridfs'; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @return array |
173 | 173 | */ |
174 | - public function getFileMeta(File $file, array $attributes, ?string $adapter = null): array |
|
174 | + public function getFileMeta(File $file, array $attributes, ?string $adapter = null) : array |
|
175 | 175 | { |
176 | 176 | if (null === $adapter) { |
177 | 177 | $adapter = 'gridfs'; |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @return bool |
191 | 191 | */ |
192 | - public function deleteFile(File $file, array $attributes, ?string $adapter = null): bool |
|
192 | + public function deleteFile(File $file, array $attributes, ?string $adapter = null) : bool |
|
193 | 193 | { |
194 | 194 | if (null === $adapter) { |
195 | 195 | $adapter = 'gridfs'; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Balloon |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | protected function setExceptionHandler(): self |
84 | 84 | { |
85 | - set_exception_handler(function ($e) { |
|
85 | + set_exception_handler(function($e) { |
|
86 | 86 | $this->container->get(LoggerInterface::class)->emergency('uncaught exception: '.$e->getMessage(), [ |
87 | 87 | 'category' => get_class($this), |
88 | 88 | 'exception' => $e, |