@@ -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 |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | 'type' => $rule['role'] instanceof User ? 'user' : 'group', |
182 | 182 | 'priv' => $rule['privilege'], |
183 | 183 | 'name' => $role['name'], |
184 | - 'id' => (string) $rule['id'], |
|
184 | + 'id' => (string)$rule['id'], |
|
185 | 185 | ]; |
186 | 186 | } |
187 | 187 | |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | |
351 | 351 | return (new Response())->setCode(201)->setBody([ |
352 | 352 | 'code' => 201, |
353 | - 'data' => (string) $result, |
|
353 | + 'data' => (string)$result, |
|
354 | 354 | ]); |
355 | 355 | } |
356 | 356 | if (null !== $id && null === $name) { |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | return (new Response())->setCode(201)->setBody([ |
368 | 368 | 'code' => 201, |
369 | - 'data' => (string) $result, |
|
369 | + 'data' => (string)$result, |
|
370 | 370 | ]); |
371 | 371 | } |
372 | 372 | } |
@@ -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 @@ |
||
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 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if (empty($set['expiration'])) { |
69 | 69 | unset($set['expiration']); |
70 | 70 | } else { |
71 | - $set['expiration'] = (int) $set['expiration']; |
|
71 | + $set['expiration'] = (int)$set['expiration']; |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | if (isset($attributes['expiration']) && !empty($attributes['expiration'])) { |
163 | - $time = (int) $attributes['expiration']; |
|
163 | + $time = (int)$attributes['expiration']; |
|
164 | 164 | if ($time < time()) { |
165 | 165 | throw new Exception\LinkExpired('link is expired'); |
166 | 166 | } |
@@ -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 |