Completed
Push — master ( 0a98b4...1f88a2 )
by Raffael
10:50 queued 06:38
created
src/app/Balloon.App.Api/v1/Node.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             }
184 184
         }
185 185
 
186
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict, $move) {
186
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict, $move) {
187 187
             if (true === $move) {
188 188
                 $node = $node->setParent($parent, $conflict);
189 189
             }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
         $node = $this->_getNode($id, $p);
262 262
         if ($node instanceof Collection) {
263
-            return (new Response())->setBody(function () use ($node) {
263
+            return (new Response())->setBody(function() use ($node) {
264 264
                 $node->getZip();
265 265
             });
266 266
         }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         }
279 279
 
280 280
         return $response->setOutputFormat(null)
281
-          ->setBody(function () use ($node, $encode, $offset, $length) {
281
+          ->setBody(function() use ($node, $encode, $offset, $length) {
282 282
               $mime = $node->getContentType();
283 283
               $stream = $node->get();
284 284
               $name = $node->getName();
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      */
350 350
     public function postReadonly($id = null, $p = null, bool $readonly = true): Response
351 351
     {
352
-        return $this->bulk($id, $p, function ($node) use ($readonly) {
352
+        return $this->bulk($id, $p, function($node) use ($readonly) {
353 353
             $node->setReadonly($readonly);
354 354
 
355 355
             return ['status' => 204];
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
      */
595 595
     public function postMetaAttributes(?string $id = null, ?string $p = null): Response
596 596
     {
597
-        return $this->bulk($id, $p, function ($node) {
597
+        return $this->bulk($id, $p, function($node) {
598 598
             $node->setMetaAttributes($_POST);
599 599
 
600 600
             return ['status' => 204];
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
             );
677 677
         }
678 678
 
679
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
679
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
680 680
             $result = $node->copyTo($parent, $conflict);
681 681
 
682 682
             return [
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
             );
738 738
         }
739 739
 
740
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
740
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
741 741
             $result = $node->setParent($parent, $conflict);
742 742
             if (NodeInterface::CONFLICT_RENAME === $conflict) {
743 743
                 return [
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
             $at = $this->_verifyAttributes(['destroy' => $at])['destroy'];
793 793
         }
794 794
 
795
-        return $this->bulk($id, $p, function ($node) use ($force, $ignore_flag, $at) {
795
+        return $this->bulk($id, $p, function($node) use ($force, $ignore_flag, $at) {
796 796
             if (null === $at) {
797 797
                 $node->delete($force && $node->isDeleted() || $force && $ignore_flag);
798 798
             } else {
Please login to merge, or discard this patch.