@@ -236,8 +236,8 @@ discard block |
||
| 236 | 236 | $share = $node->getFilesystem()->findRawNode($node->getShareId()); |
| 237 | 237 | } catch (\Exception $e) { |
| 238 | 238 | $this->logger->error('could not find share node ['.$node->getShareId().'] for reference ['.$node->getId().'], dead reference?', [ |
| 239 | - 'category' => get_class($this), |
|
| 240 | - 'exception' => $e, |
|
| 239 | + 'category' => get_class($this), |
|
| 240 | + 'exception' => $e, |
|
| 241 | 241 | ]); |
| 242 | 242 | |
| 243 | 243 | return self::PRIVILEGE_DENY; |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | |
| 246 | 246 | if ($share['deleted'] instanceof UTCDateTime || true !== $share['shared']) { |
| 247 | 247 | $this->logger->error('share node ['.$share['_id'].'] has been deleted, dead reference?', [ |
| 248 | - 'category' => get_class($this), |
|
| 248 | + 'category' => get_class($this), |
|
| 249 | 249 | ]); |
| 250 | 250 | |
| 251 | 251 | return self::PRIVILEGE_DENY; |
@@ -92,13 +92,13 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | return [ |
| 95 | - 'created' => function ($role) use ($attributes) { |
|
| 95 | + 'created' => function($role) use ($attributes) { |
|
| 96 | 96 | return $attributes['created']->toDateTime()->format('c'); |
| 97 | 97 | }, |
| 98 | - 'changed' => function ($role) use ($attributes) { |
|
| 98 | + 'changed' => function($role) use ($attributes) { |
|
| 99 | 99 | return $attributes['changed']->toDateTime()->format('c'); |
| 100 | 100 | }, |
| 101 | - 'deleted' => function ($role) use ($attributes) { |
|
| 101 | + 'deleted' => function($role) use ($attributes) { |
|
| 102 | 102 | if (false === $attributes['deleted']) { |
| 103 | 103 | return null; |
| 104 | 104 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'name' => (string) $attributes['username'], |
| 147 | 147 | 'admin' => (bool) $attributes['admin'], |
| 148 | 148 | 'namespace' => isset($attributes['namespace']) ? (string) $attributes['namespace'] : null, |
| 149 | - 'mail' => function ($role) use ($attributes, $user) { |
|
| 149 | + 'mail' => function($role) use ($attributes, $user) { |
|
| 150 | 150 | if (!isset($attributes['mail'])) { |
| 151 | 151 | return null; |
| 152 | 152 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | 'locale' => isset($attributes['locale']) ? (string) $attributes['locale'] : null, |
| 161 | 161 | 'hard_quota' => isset($attributes['hard_quota']) ? (int) $attributes['hard_quota'] : null, |
| 162 | 162 | 'soft_quota' => isset($attributes['soft_quota']) ? (int) $attributes['soft_quota'] : null, |
| 163 | - 'available' => function ($role) use (&$quota, $attributes, $user) { |
|
| 163 | + 'available' => function($role) use (&$quota, $attributes, $user) { |
|
| 164 | 164 | $quota === null ? $quota = $role->getQuotaUsage() : null; |
| 165 | 165 | if ($attributes['_id'] == $user->getId() || $user->isAdmin()) { |
| 166 | 166 | return $quota['available']; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | return null; |
| 170 | 170 | }, |
| 171 | - 'used' => function ($role) use (&$quota, $attributes, $user) { |
|
| 171 | + 'used' => function($role) use (&$quota, $attributes, $user) { |
|
| 172 | 172 | $quota === null ? $quota = $role->getQuotaUsage() : null; |
| 173 | 173 | if ($attributes['_id'] == $user->getId() || $user->isAdmin()) { |
| 174 | 174 | return $quota['used']; |