@@ -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 |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | public function start(): bool |
86 | 86 | { |
87 | 87 | return $this->migration->start( |
88 | - (bool) $this->getopt->getOption('force'), |
|
89 | - (bool) $this->getopt->getOption('ignore') |
|
88 | + (bool)$this->getopt->getOption('force'), |
|
89 | + (bool)$this->getopt->getOption('ignore') |
|
90 | 90 | ); |
91 | 91 | } |
92 | 92 | } |
@@ -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 |
@@ -151,13 +151,13 @@ discard block |
||
151 | 151 | case 'temp_dir': |
152 | 152 | case 'password_policy': |
153 | 153 | case 'server_url': |
154 | - $this->{$name} = (string) $value; |
|
154 | + $this->{$name} = (string)$value; |
|
155 | 155 | |
156 | 156 | break; |
157 | 157 | case 'max_file_version': |
158 | 158 | case 'max_file_size': |
159 | 159 | case 'password_hash': |
160 | - $this->{$name} = (int) $value; |
|
160 | + $this->{$name} = (int)$value; |
|
161 | 161 | |
162 | 162 | break; |
163 | 163 | default: |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | |
337 | 337 | break; |
338 | 338 | case 'admin': |
339 | - $value = (bool) $value; |
|
339 | + $value = (bool)$value; |
|
340 | 340 | |
341 | 341 | break; |
342 | 342 | case 'namespace': |
@@ -209,6 +209,7 @@ |
||
209 | 209 | /** |
210 | 210 | * Filesystem factory. |
211 | 211 | * |
212 | + * @param User $user |
|
212 | 213 | * @return Filesystem |
213 | 214 | */ |
214 | 215 | public function getFilesystem(?User $user = null): Filesystem |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | |
532 | 532 | $this->identity = $user; |
533 | 533 | $user->updateIdentity($identity) |
534 | - ->updateShares(); |
|
534 | + ->updateShares(); |
|
535 | 535 | $this->hook->run('postServerIdentity', [$user]); |
536 | 536 | |
537 | 537 | return true; |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | public function getGroupByName(string $name): Group |
663 | 663 | { |
664 | 664 | $group = $this->db->group->findOne([ |
665 | - 'name' => $name, |
|
665 | + 'name' => $name, |
|
666 | 666 | ]); |
667 | 667 | |
668 | 668 | if (null === $group) { |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | public function getGroupById(ObjectId $id): Group |
683 | 683 | { |
684 | 684 | $group = $this->db->group->findOne([ |
685 | - '_id' => $id, |
|
685 | + '_id' => $id, |
|
686 | 686 | ]); |
687 | 687 | |
688 | 688 | if (null === $group) { |
@@ -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 |