@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | } |
181 | 181 | |
182 | - return $this->bulk($id, $p, function ($node) use ($parent, $conflict, $move) { |
|
182 | + return $this->bulk($id, $p, function($node) use ($parent, $conflict, $move) { |
|
183 | 183 | if (true === $move) { |
184 | 184 | $node = $node->setParent($parent, $conflict); |
185 | 185 | } |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | return (new Response())->setCode(200)->setBody($result); |
347 | 347 | } |
348 | 348 | |
349 | - return $this->bulk($id, $p, function ($node) use ($attributes) { |
|
349 | + return $this->bulk($id, $p, function($node) use ($attributes) { |
|
350 | 350 | return [ |
351 | 351 | 'code' => 200, |
352 | 352 | 'data' => $this->node_decorator->decorate($node, $attributes), |
@@ -454,9 +454,9 @@ discard block |
||
454 | 454 | public function patch(?string $name = null, ?array $meta = null, ?bool $readonly = null, ?array $filter = null, ?array $acl = null, ?string $id = null, ?string $p = null): Response |
455 | 455 | { |
456 | 456 | $attributes = compact('name', 'meta', 'readonly', 'filter', 'acl'); |
457 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
457 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
458 | 458 | |
459 | - return $this->bulk($id, $p, function ($node) use ($attributes) { |
|
459 | + return $this->bulk($id, $p, function($node) use ($attributes) { |
|
460 | 460 | foreach ($attributes as $attribute => $value) { |
461 | 461 | switch ($attribute) { |
462 | 462 | case 'name': |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | ); |
540 | 540 | } |
541 | 541 | |
542 | - return $this->bulk($id, $p, function ($node) use ($parent, $conflict) { |
|
542 | + return $this->bulk($id, $p, function($node) use ($parent, $conflict) { |
|
543 | 543 | $result = $node->copyTo($parent, $conflict); |
544 | 544 | |
545 | 545 | return [ |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | ); |
601 | 601 | } |
602 | 602 | |
603 | - return $this->bulk($id, $p, function ($node) use ($parent, $conflict) { |
|
603 | + return $this->bulk($id, $p, function($node) use ($parent, $conflict) { |
|
604 | 604 | $result = $node->setParent($parent, $conflict); |
605 | 605 | |
606 | 606 | return [ |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | $at = $this->_verifyAttributes(['destroy' => $at])['destroy']; |
651 | 651 | } |
652 | 652 | |
653 | - return $this->bulk($id, $p, function ($node) use ($force, $ignore_flag, $at) { |
|
653 | + return $this->bulk($id, $p, function($node) use ($force, $ignore_flag, $at) { |
|
654 | 654 | if (null === $at) { |
655 | 655 | $node->delete($force && $node->isDeleted() || $force && $ignore_flag); |
656 | 656 | } else { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | return $response |
37 | 37 | ->setOutputFormat(null) |
38 | - ->setBody(function () use ($file) { |
|
38 | + ->setBody(function() use ($file) { |
|
39 | 39 | $stream = $file->get(); |
40 | 40 | $name = $file->getName(); |
41 | 41 |