@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * 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 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param string $recursion |
67 | 67 | * @param bool $recursion_first |
68 | 68 | */ |
69 | - public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
69 | + public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
70 | 70 | { |
71 | 71 | if (true === $force) { |
72 | 72 | try { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace Balloon\App\Preview; |
14 | 14 | |
15 | -use Balloon\Exception; |
|
16 | 15 | use Balloon\Filesystem\Node\File; |
17 | 16 | use Balloon\Hook\AbstractHook; |
18 | 17 | use MongoDB\GridFS\Exception\FileNotFoundException; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * 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 |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return Response |
89 | 89 | */ |
90 | - public function post(?string $id = null, ?string $p = null): Response |
|
90 | + public function post(?string $id = null, ?string $p = null) : Response |
|
91 | 91 | { |
92 | 92 | $node = $this->fs->getNode($id, $p, File::class); |
93 | 93 | $document = new Document($this->fs->getDatabase(), $node); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ->store(); |
100 | 100 | |
101 | 101 | return (new Response())->setCode(201)->setBody([ |
102 | - 'id' => (string) $session->getId(), |
|
102 | + 'id' => (string)$session->getId(), |
|
103 | 103 | 'access_token' => $member->getAccessToken(), |
104 | 104 | 'access_token_ttl' => ($member->getTTL()->toDateTime()->format('U') * 1000), |
105 | 105 | ]); |
@@ -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 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @return AppInterface |
86 | 86 | */ |
87 | - public function setOptions(?Iterable $config = null): AppInterface |
|
87 | + public function setOptions(?Iterable $config = null) : AppInterface |
|
88 | 88 | { |
89 | 89 | if (null === $config) { |
90 | 90 | return $this; |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | foreach ($config as $option => $value) { |
94 | 94 | switch ($option) { |
95 | 95 | case 'loleaflet': |
96 | - $this->loleaflet = (string) $value; |
|
96 | + $this->loleaflet = (string)$value; |
|
97 | 97 | |
98 | 98 | break; |
99 | 99 | case 'token_ttl': |
100 | - $this->token_ttl = (int) $value; |
|
100 | + $this->token_ttl = (int)$value; |
|
101 | 101 | |
102 | 102 | break; |
103 | 103 | default: |
@@ -85,6 +85,6 @@ |
||
85 | 85 | protected function getTemplate(): string |
86 | 86 | { |
87 | 87 | return __DIR__.DIRECTORY_SEPARATOR.'assets' |
88 | - .DIRECTORY_SEPARATOR.'template.'.$this->type; |
|
88 | + .DIRECTORY_SEPARATOR.'template.'.$this->type; |
|
89 | 89 | } |
90 | 90 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |