@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * 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 |
@@ -103,13 +103,13 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | return [ |
106 | - 'created' => function ($role, $requested) use ($attributes) { |
|
106 | + 'created' => function($role, $requested) use ($attributes) { |
|
107 | 107 | return Helper::DateTimeToUnix($attributes['created']); |
108 | 108 | }, |
109 | - 'changed' => function ($role, $requested) use ($attributes) { |
|
109 | + 'changed' => function($role, $requested) use ($attributes) { |
|
110 | 110 | return Helper::DateTimeToUnix($attributes['changed']); |
111 | 111 | }, |
112 | - 'deleted' => function ($role, $requested) use ($attributes) { |
|
112 | + 'deleted' => function($role, $requested) use ($attributes) { |
|
113 | 113 | if (false === $attributes['deleted']) { |
114 | 114 | return false; |
115 | 115 | } |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | return [ |
137 | - 'id' => (string) $attributes['id'], |
|
138 | - 'name' => (string) $attributes['name'], |
|
139 | - 'namespace' => (string) $attributes['namespace'], |
|
137 | + 'id' => (string)$attributes['id'], |
|
138 | + 'name' => (string)$attributes['name'], |
|
139 | + 'namespace' => (string)$attributes['namespace'], |
|
140 | 140 | ]; |
141 | 141 | } |
142 | 142 | |
@@ -157,18 +157,18 @@ discard block |
||
157 | 157 | $user = $this->server->getIdentity(); |
158 | 158 | |
159 | 159 | return [ |
160 | - 'id' => (string) $attributes['id'], |
|
161 | - 'name' => (string) $attributes['username'], |
|
162 | - 'namespace' => (string) $attributes['namespace'], |
|
163 | - 'mail' => (string) $attributes['mail'], |
|
164 | - 'avatar' => function ($role, $requested) use ($attributes) { |
|
160 | + 'id' => (string)$attributes['id'], |
|
161 | + 'name' => (string)$attributes['username'], |
|
162 | + 'namespace' => (string)$attributes['namespace'], |
|
163 | + 'mail' => (string)$attributes['mail'], |
|
164 | + 'avatar' => function($role, $requested) use ($attributes) { |
|
165 | 165 | if ($attributes['avatar'] instanceof Binary) { |
166 | 166 | return base64_encode($attributes['avatar']->getData()); |
167 | 167 | } |
168 | 168 | |
169 | 169 | return null; |
170 | 170 | }, |
171 | - 'soft_quota' => function ($role, $requested) use ($attributes, $user) { |
|
171 | + 'soft_quota' => function($role, $requested) use ($attributes, $user) { |
|
172 | 172 | if ($user === null) { |
173 | 173 | return null; |
174 | 174 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | return null; |
181 | 181 | }, |
182 | - 'hard_quota' => function ($role, $requested) use ($attributes, $user) { |
|
182 | + 'hard_quota' => function($role, $requested) use ($attributes, $user) { |
|
183 | 183 | if ($user === null) { |
184 | 184 | return null; |
185 | 185 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |