@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | } else { |
225 | 225 | $this->logger->debug('requested path ['.$this->path.'] does not match route ['.$route->getPath().']', [ |
226 | - 'category' => get_class($this), |
|
226 | + 'category' => get_class($this), |
|
227 | 227 | ]); |
228 | 228 | } |
229 | 229 | } |
@@ -267,22 +267,22 @@ discard block |
||
267 | 267 | ]; |
268 | 268 | |
269 | 269 | switch (get_class($exception)) { |
270 | - case 'Balloon\\Exception\\InvalidArgument': |
|
270 | + case 'Balloon\\Exception\\InvalidArgument': |
|
271 | 271 | case 'Balloon\\Exception\\Conflict': |
272 | 272 | $code = 400; |
273 | - break; |
|
274 | - case 'Balloon\\Exception\\NotFound': |
|
273 | + break; |
|
274 | + case 'Balloon\\Exception\\NotFound': |
|
275 | 275 | $code = 404; |
276 | - break; |
|
277 | - case 'Balloon\\Exception\\Forbidden': |
|
276 | + break; |
|
277 | + case 'Balloon\\Exception\\Forbidden': |
|
278 | 278 | $code = 403; |
279 | - break; |
|
280 | - case 'Balloon\\Exception\\InsufficientStorage': |
|
279 | + break; |
|
280 | + case 'Balloon\\Exception\\InsufficientStorage': |
|
281 | 281 | $code = 507; |
282 | - break; |
|
283 | - default: |
|
282 | + break; |
|
283 | + default: |
|
284 | 284 | $code = 500; |
285 | - break; |
|
285 | + break; |
|
286 | 286 | } |
287 | 287 | |
288 | 288 | $this->logger->error('uncaught exception '.$message.']', [ |
@@ -282,13 +282,13 @@ |
||
282 | 282 | |
283 | 283 | |
284 | 284 | /** |
285 | - * Converts mixed data to XML |
|
286 | - * |
|
287 | - * @param mixed $data |
|
288 | - * @param SimpleXMLElement $xml |
|
289 | - * @param string|int $child_name |
|
290 | - * @return string |
|
291 | - */ |
|
285 | + * Converts mixed data to XML |
|
286 | + * |
|
287 | + * @param mixed $data |
|
288 | + * @param SimpleXMLElement $xml |
|
289 | + * @param string|int $child_name |
|
290 | + * @return string |
|
291 | + */ |
|
292 | 292 | public function toXML($data, SimpleXMLElement $xml, $child_name): string |
293 | 293 | { |
294 | 294 | if (is_object($data)) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | |
124 | 124 | $this->logger->warning("all authentication adapter have failed", [ |
125 | - 'category' => get_class($this) |
|
125 | + 'category' => get_class($this) |
|
126 | 126 | ]); |
127 | 127 | |
128 | 128 | $this->plugin->run('invalidAuthentication', [$adapters]); |
@@ -251,8 +251,8 @@ discard block |
||
251 | 251 | switch ($value['type']) { |
252 | 252 | case 'array': |
253 | 253 | $arr = (array)$data[$value['attr']]; |
254 | - unset($arr['count']); |
|
255 | - $attrs[$attr] = $arr; |
|
254 | + unset($arr['count']); |
|
255 | + $attrs[$attr] = $arr; |
|
256 | 256 | break; |
257 | 257 | |
258 | 258 | case 'string': |
@@ -42,7 +42,7 @@ |
||
42 | 42 | protected $resource; |
43 | 43 | |
44 | 44 | |
45 | - /** |
|
45 | + /** |
|
46 | 46 | * Logger |
47 | 47 | * |
48 | 48 | * @var Logger |
@@ -893,7 +893,7 @@ |
||
893 | 893 | case 'shareowner': |
894 | 894 | if ($this->isSpecial() && $sharenode !== null) { |
895 | 895 | $build['shareowner'] = (new User($this->_fs->findRawNode($this->getShareId())['owner'], |
896 | - $this->_logger, $this->_fs) |
|
896 | + $this->_logger, $this->_fs) |
|
897 | 897 | )->getUsername(); |
898 | 898 | } |
899 | 899 | break; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | if (isset($app['enabled']) && $app['enabled'] != "1") { |
100 | 100 | $this->logger->debug('skip disabled app ['.$class.']', [ |
101 | - 'category' => get_class($this) |
|
101 | + 'category' => get_class($this) |
|
102 | 102 | ]); |
103 | 103 | continue; |
104 | 104 | } |
@@ -209,7 +209,6 @@ discard block |
||
209 | 209 | * curl -XHEAD "https://SERVER/api/v1/node?id=544627ed3c58891f058b4686" |
210 | 210 | * curl -XHEAD "https://SERVER/api/v1/node/544627ed3c58891f058b4686" |
211 | 211 | * curl -XHEAD "https://SERVER/api/v1/node?p=/absolute/path/to/my/node" |
212 | - |
|
213 | 212 | * @apiParam (GET Parameter) {number} [deleted=0] Wherever include deleted node or not, possible values:</br> |
214 | 213 | * - 0 Exclude deleted</br> |
215 | 214 | * - 1 Only deleted</br> |
@@ -666,9 +665,9 @@ discard block |
||
666 | 665 | $node->zip($archive); |
667 | 666 | } catch (\Exception $e) { |
668 | 667 | $this->logger->debug('failed zip node in multi node request ['.$node->getId().']', [ |
669 | - 'category' => get_class($this), |
|
670 | - 'exception' => $e, |
|
671 | - ]); |
|
668 | + 'category' => get_class($this), |
|
669 | + 'exception' => $e, |
|
670 | + ]); |
|
672 | 671 | } |
673 | 672 | } |
674 | 673 | |
@@ -900,8 +899,8 @@ discard block |
||
900 | 899 | { |
901 | 900 | $result = Helper::escape( |
902 | 901 | $this->_getNode($id, $p) |
903 | - ->getParent() |
|
904 | - ->getAttribute($attributes) |
|
902 | + ->getParent() |
|
903 | + ->getAttribute($attributes) |
|
905 | 904 | ); |
906 | 905 | |
907 | 906 | return (new Response())->setCode(200)->setBody($result); |
@@ -1641,7 +1640,6 @@ discard block |
||
1641 | 1640 | * - moveCollection |
1642 | 1641 | * - moveCollectionReference |
1643 | 1642 | * - moveCollectionShare |
1644 | - |
|
1645 | 1643 | * @apiExample (cURL) example: |
1646 | 1644 | * curl -XGET "https://SERVER/api/v1/node/event-log?pretty" |
1647 | 1645 | * curl -XGET "https://SERVER/api/v1/node/event-log?id=544627ed3c58891f058b4686&pretty" |
@@ -231,7 +231,6 @@ |
||
231 | 231 | * |
232 | 232 | * @apiSuccessExample {json} Success-Response: |
233 | 233 | * HTTP/1.1 204 No Content |
234 | - |
|
235 | 234 | * @param string $id |
236 | 235 | * @param string $p |
237 | 236 | * @return Response |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | * @return void |
279 | 279 | */ |
280 | 280 | public function preCopyFile(File $node, Collection $parent, |
281 | - int $conflict, ?string $recursion, bool $recursion_first): void; |
|
281 | + int $conflict, ?string $recursion, bool $recursion_first): void; |
|
282 | 282 | |
283 | 283 | |
284 | 284 | /** |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | * @return void |
296 | 296 | */ |
297 | 297 | public function postCopyFile(File $node, Collection $parent, File $new_node, |
298 | - int $conflict, ?string $recursion, bool $recursion_first): void; |
|
298 | + int $conflict, ?string $recursion, bool $recursion_first): void; |
|
299 | 299 | |
300 | 300 | |
301 | 301 | /** |