@@ -40,7 +40,7 @@ |
||
40 | 40 | * Cli. |
41 | 41 | * |
42 | 42 | * @param LoggerInterface $logger |
43 | - * @param Getopt $getopt |
|
43 | + * @param GetOpt $getopt |
|
44 | 44 | * @param ContainerInterface $container |
45 | 45 | */ |
46 | 46 | public function __construct(LoggerInterface $logger, GetOpt $getopt, ContainerInterface $container) |
@@ -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 |
@@ -102,13 +102,13 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | return [ |
105 | - 'created' => function ($role) use ($attributes) { |
|
105 | + 'created' => function($role) use ($attributes) { |
|
106 | 106 | return $attributes['created']->toDateTime()->format('c'); |
107 | 107 | }, |
108 | - 'changed' => function ($role) use ($attributes) { |
|
108 | + 'changed' => function($role) use ($attributes) { |
|
109 | 109 | return $attributes['changed']->toDateTime()->format('c'); |
110 | 110 | }, |
111 | - 'deleted' => function ($role) use ($attributes) { |
|
111 | + 'deleted' => function($role) use ($attributes) { |
|
112 | 112 | if (false === $attributes['deleted']) { |
113 | 113 | return null; |
114 | 114 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | 'namespace' => (string) $attributes['namespace'], |
163 | 163 | 'mail' => (string) $attributes['mail'], |
164 | 164 | 'locale' => (string) $attributes['locale'], |
165 | - 'quota' => function ($role) use ($attributes, $user) { |
|
165 | + 'quota' => function($role) use ($attributes, $user) { |
|
166 | 166 | if ($attributes['_id'] == $user->getId() || $user->isAdmin()) { |
167 | 167 | return $role->getQuotaUsage(); |
168 | 168 | } |
@@ -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 |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | } |
389 | 389 | |
390 | 390 | $attributes = compact('password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale', 'optional'); |
391 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
391 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
392 | 392 | |
393 | 393 | if (isset($attributes['avatar'])) { |
394 | 394 | $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC); |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | public function patch(?string $id = null, ?string $uname = null, ?string $username = null, ?string $password = null, ?int $soft_quota = null, ?int $hard_quota = null, ?string $avatar = null, ?string $mail = null, ?bool $admin = false, ?string $namespace = null, ?string $locale = null, ?array $optional = null): Response |
437 | 437 | { |
438 | 438 | $attributes = compact('username', 'password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale', 'optional'); |
439 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
439 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
440 | 440 | |
441 | 441 | if (isset($attributes['avatar'])) { |
442 | 442 | $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC); |