@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | $this->storage = $this->_parent->getStorage()->deleteCollection($this); |
363 | 363 | |
364 | 364 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
365 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
365 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
366 | 366 | $node->delete(false, $recursion, false); |
367 | 367 | }, NodeInterface::DELETED_EXCLUDE); |
368 | 368 | } |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | protected function _forceDelete(?string $recursion = null, bool $recursion_first = true): bool |
918 | 918 | { |
919 | 919 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
920 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
920 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
921 | 921 | $node->delete(true, $recursion, false); |
922 | 922 | }, NodeInterface::DELETED_INCLUDE); |
923 | 923 | } |
@@ -134,7 +134,7 @@ |
||
134 | 134 | /** |
135 | 135 | * {@inheritdoc} |
136 | 136 | */ |
137 | - public function preServerIdentity(Identity $identity, ?User &$user): void |
|
137 | + public function preServerIdentity(Identity $identity, ?User & $user): void |
|
138 | 138 | { |
139 | 139 | if (null === $user || (preg_match('#^/index.php/api/v2/tokens#', $_SERVER['ORIG_SCRIPT_NAME']) && isset($_POST['grant_type']) && (preg_match('#_mfa$#', $_POST['grant_type']) || $_POST['grant_type'] === 'refresh_token'))) { |
140 | 140 | return; |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | ->setCode(200) |
191 | 191 | ->setHeader('X-WOPI-Lock', '') |
192 | 192 | ->setBody($e); |
193 | - } catch (Exception\Locked|Exception\LockIdMissmatch|Exception\Forbidden $e) { |
|
193 | + } catch (Exception\Locked | Exception\LockIdMissmatch | Exception\Forbidden $e) { |
|
194 | 194 | $lock = $file->getLock(); |
195 | 195 | |
196 | 196 | return (new Response()) |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | ->setCode(200) |
243 | 243 | ->setHeader('X-WOPI-ItemVersion', (string) ($version == $result ? $result : $result)) |
244 | 244 | ->setBody($result); |
245 | - } catch (Exception\Locked|Exception\LockIdMissmatch $e) { |
|
245 | + } catch (Exception\Locked | Exception\LockIdMissmatch $e) { |
|
246 | 246 | $lock = $file->getLock(); |
247 | 247 | |
248 | 248 | return $response |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | $response = (new Response()) |
268 | 268 | ->setCode(200) |
269 | 269 | ->setHeader('X-WOPI-ItemVersion', (string) $file->getVersion()) |
270 | - ->setBody(function () use ($stream) { |
|
270 | + ->setBody(function() use ($stream) { |
|
271 | 271 | if ($stream === null) { |
272 | 272 | echo ''; |
273 | 273 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | try { |
41 | 41 | $this->createIndex(); |
42 | - } catch (CommandException|RuntimeException $e) { |
|
42 | + } catch (CommandException | RuntimeException $e) { |
|
43 | 43 | if ($e->getCode() === 85) { |
44 | 44 | $this->db->selectCollection('fs.files')->dropIndex('md5_1'); |
45 | 45 | $this->createIndex(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | try { |
41 | 41 | $this->createIndex(); |
42 | - } catch (CommandException|RuntimeException $e) { |
|
42 | + } catch (CommandException | RuntimeException $e) { |
|
43 | 43 | if ($e->getCode() === 85) { |
44 | 44 | $this->db->selectCollection('user')->dropIndex('mail_1'); |
45 | 45 | $this->createIndex(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | try { |
41 | 41 | $this->createIndex(); |
42 | - } catch (CommandException|RuntimeException $e) { |
|
42 | + } catch (CommandException | RuntimeException $e) { |
|
43 | 43 | if ($e->getCode() === 85) { |
44 | 44 | $this->db->selectCollection('user')->dropIndex('mail_1'); |
45 | 45 | $this->createIndex(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | if ( |
83 | 83 | !($this->auth->getIdentity()->getAdapter() instanceof AuthNone)) { |
84 | - $this->auth->getIdentity()->getAttributeMap()->addMapper('binary', function ($value) { |
|
84 | + $this->auth->getIdentity()->getAttributeMap()->addMapper('binary', function($value) { |
|
85 | 85 | return new Binary($value, Binary::TYPE_GENERIC); |
86 | 86 | }); |
87 | 87 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | protected function setExceptionHandler(): self |
140 | 140 | { |
141 | - set_exception_handler(function ($e) { |
|
141 | + set_exception_handler(function($e) { |
|
142 | 142 | $this->logger->emergency('uncaught exception: '.$e->getMessage(), [ |
143 | 143 | 'category' => static::class, |
144 | 144 | 'exception' => $e, |
@@ -163,7 +163,7 @@ |
||
163 | 163 | */ |
164 | 164 | protected function setExceptionHandler(): self |
165 | 165 | { |
166 | - set_exception_handler(function ($e) { |
|
166 | + set_exception_handler(function($e) { |
|
167 | 167 | $this->logger->emergency('uncaught exception: '.$e->getMessage(), [ |
168 | 168 | 'category' => static::class, |
169 | 169 | 'exception' => $e, |
@@ -77,7 +77,7 @@ |
||
77 | 77 | /** |
78 | 78 | * {@inheritdoc} |
79 | 79 | */ |
80 | - public function preServerIdentity(Identity $identity, ?User &$user): void |
|
80 | + public function preServerIdentity(Identity $identity, ?User & $user): void |
|
81 | 81 | { |
82 | 82 | if (null !== $user) { |
83 | 83 | return; |