@@ -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 |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | return 'd'; |
126 | 126 | } |
127 | 127 | |
128 | - if ((string) $share['owner'] === (string) $user->getId()) { |
|
128 | + if ((string)$share['owner'] === (string)$user->getId()) { |
|
129 | 129 | return 'm'; |
130 | 130 | } |
131 | 131 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $groups = $user->getGroups(); |
169 | 169 | foreach ($acl as $rule) { |
170 | - if (self::TYPE_USER === $rule['type'] && $rule['id'] === (string) $user->getId()) { |
|
170 | + if (self::TYPE_USER === $rule['type'] && $rule['id'] === (string)$user->getId()) { |
|
171 | 171 | $priv = $rule['privilege']; |
172 | 172 | } elseif (self::TYPE_GROUP === $rule['type'] && in_array($rule['id'], $groups)) { |
173 | 173 | $priv = $rule['privilege']; |
@@ -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 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | if ($auth->requireOne()) { |
43 | 43 | if (!($auth->getIdentity()->getAdapter() instanceof AuthNone)) { |
44 | - $auth->getIdentity()->getAttributeMap()->addMapper('binary', function ($value) { |
|
44 | + $auth->getIdentity()->getAttributeMap()->addMapper('binary', function($value) { |
|
45 | 45 | return new Binary($value, Binary::TYPE_GENERIC); |
46 | 46 | }); |
47 | 47 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function setExceptionHandler(): self |
88 | 88 | { |
89 | - set_exception_handler(function ($e) { |
|
89 | + set_exception_handler(function($e) { |
|
90 | 90 | $this->container->get(LoggerInterface::class)->emergency('uncaught exception: '.$e->getMessage(), [ |
91 | 91 | 'category' => get_class($this), |
92 | 92 | 'exception' => $e, |
@@ -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 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function setExceptionHandler(): self |
43 | 43 | { |
44 | - set_exception_handler(function ($e) { |
|
44 | + set_exception_handler(function($e) { |
|
45 | 45 | $logger = $this->container->get(LoggerInterface::class); |
46 | 46 | $logger->emergency('uncaught exception: '.$e->getMessage(), [ |
47 | 47 | 'category' => get_class($this), |
@@ -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 |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | return [ |
104 | - 'created' => function ($role, $requested) use ($attributes) { |
|
104 | + 'created' => function($role, $requested) use ($attributes) { |
|
105 | 105 | return $attributes['created']->toDateTime()->format('c'); |
106 | 106 | }, |
107 | - 'changed' => function ($role, $requested) use ($attributes) { |
|
107 | + 'changed' => function($role, $requested) use ($attributes) { |
|
108 | 108 | return $attributes['changed']->toDateTime()->format('c'); |
109 | 109 | }, |
110 | - 'deleted' => function ($role, $requested) use ($attributes) { |
|
110 | + 'deleted' => function($role, $requested) use ($attributes) { |
|
111 | 111 | if (false === $attributes['deleted']) { |
112 | 112 | return null; |
113 | 113 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | return [ |
135 | - 'id' => (string) $attributes['_id'], |
|
135 | + 'id' => (string)$attributes['_id'], |
|
136 | 136 | 'name' => $attributes['name'], |
137 | 137 | 'namespace' => $attributes['namespace'], |
138 | 138 | ]; |
@@ -155,11 +155,11 @@ discard block |
||
155 | 155 | $user = $this->server->getIdentity(); |
156 | 156 | |
157 | 157 | return [ |
158 | - 'id' => (string) $attributes['_id'], |
|
159 | - 'name' => (string) $attributes['username'], |
|
160 | - 'namespace' => (string) $attributes['namespace'], |
|
161 | - 'mail' => (string) $attributes['mail'], |
|
162 | - 'soft_quota' => function ($role, $requested) use ($attributes, $user) { |
|
158 | + 'id' => (string)$attributes['_id'], |
|
159 | + 'name' => (string)$attributes['username'], |
|
160 | + 'namespace' => (string)$attributes['namespace'], |
|
161 | + 'mail' => (string)$attributes['mail'], |
|
162 | + 'soft_quota' => function($role, $requested) use ($attributes, $user) { |
|
163 | 163 | if ($user === null) { |
164 | 164 | return null; |
165 | 165 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | return null; |
172 | 172 | }, |
173 | - 'hard_quota' => function ($role, $requested) use ($attributes, $user) { |
|
173 | + 'hard_quota' => function($role, $requested) use ($attributes, $user) { |
|
174 | 174 | if ($user === null) { |
175 | 175 | return null; |
176 | 176 | } |