@@ -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 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return DesktopClient |
85 | 85 | */ |
86 | - public function setOptions(?Iterable $config = null): self |
|
86 | + public function setOptions(?Iterable $config = null) : self |
|
87 | 87 | { |
88 | 88 | if (null === $config) { |
89 | 89 | return $this; |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | switch ($option) { |
94 | 94 | case 'github_request_url': |
95 | 95 | case 'github_request_timeout': |
96 | - $this->{$option} = (string) $value; |
|
96 | + $this->{$option} = (string)$value; |
|
97 | 97 | |
98 | 98 | break; |
99 | 99 | case 'github_request_timeout': |
100 | - $this->github_request_timeout = (int) $value; |
|
100 | + $this->github_request_timeout = (int)$value; |
|
101 | 101 | |
102 | 102 | break; |
103 | 103 | case 'formats': |
@@ -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 |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $id |
87 | 87 | * @param string $p |
88 | 88 | */ |
89 | - public function getSupportedFormats(?string $id = null, ?string $p = null): Response |
|
89 | + public function getSupportedFormats(?string $id = null, ?string $p = null) : Response |
|
90 | 90 | { |
91 | 91 | $file = $this->fs->getNode($id, $p, File::class); |
92 | 92 | |
@@ -116,12 +116,12 @@ discard block |
||
116 | 116 | * @param string $id |
117 | 117 | * @param string $p |
118 | 118 | */ |
119 | - public function getSlaves(?string $id = null, ?string $p = null): Response |
|
119 | + public function getSlaves(?string $id = null, ?string $p = null) : Response |
|
120 | 120 | { |
121 | 121 | $file = $this->fs->getNode($id, $p, File::class); |
122 | 122 | $slaves = $file->getAppAttribute('Balloon\\App\\Convert', 'slaves'); |
123 | 123 | |
124 | - return (new Response())->setCode(200)->setBody((array) $slaves); |
|
124 | + return (new Response())->setCode(200)->setBody((array)$slaves); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * @param string $p |
148 | 148 | * @param string $format |
149 | 149 | */ |
150 | - public function postSlave(string $format, ?string $id = null, ?string $p = null): Response |
|
150 | + public function postSlave(string $format, ?string $id = null, ?string $p = null) : Response |
|
151 | 151 | { |
152 | 152 | $file = $this->fs->getNode($id, $p, File::class); |
153 | 153 | $supported = $this->converter->getSupportedFormats($file); |
@@ -168,14 +168,14 @@ discard block |
||
168 | 168 | 'slave' => $id, |
169 | 169 | ]); |
170 | 170 | |
171 | - $slaves[(string) $id] = [ |
|
171 | + $slaves[(string)$id] = [ |
|
172 | 172 | '_id' => $id, |
173 | 173 | 'format' => $format, |
174 | 174 | ]; |
175 | 175 | |
176 | 176 | $file->setAppAttribute('Balloon\\App\\Convert', 'slaves', $slaves); |
177 | 177 | |
178 | - return (new Response())->setCode(201)->setBody((string) $id); |
|
178 | + return (new Response())->setCode(201)->setBody((string)$id); |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | /** |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param string $slave |
199 | 199 | * @param bool $node |
200 | 200 | */ |
201 | - public function deleteSlave(string $slave, ?string $id = null, ?string $p = null, bool $node = false): Response |
|
201 | + public function deleteSlave(string $slave, ?string $id = null, ?string $p = null, bool $node = false) : Response |
|
202 | 202 | { |
203 | 203 | $file = $this->fs->getNode($id, $p, File::class); |
204 | 204 |
@@ -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 |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @return Response |
78 | 78 | */ |
79 | - public function post(?string $id = null, ?string $p = null, array $options = []): Response |
|
79 | + public function post(?string $id = null, ?string $p = null, array $options = []) : Response |
|
80 | 80 | { |
81 | 81 | $node = $this->fs->getNode($id, $p); |
82 | 82 | $options = Helper::filter($options); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @return Response |
110 | 110 | */ |
111 | - public function delete(?string $id = null, ?string $p = null): Response |
|
111 | + public function delete(?string $id = null, ?string $p = null) : Response |
|
112 | 112 | { |
113 | 113 | $node = $this->fs->getNode($id, $p); |
114 | 114 | $options = ['shared' => false]; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @return Response |
153 | 153 | */ |
154 | - public function get(?string $id = null, ?string $p = null): Response |
|
154 | + public function get(?string $id = null, ?string $p = null) : Response |
|
155 | 155 | { |
156 | 156 | $node = $this->fs->getNode($id, $p); |
157 | 157 | $result = Helper::escape( |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |