Completed
Push — master ( 309a3e...0a98b4 )
by Raffael
04:53
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
         }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
         return (new Response())
281 281
           ->setOutputFormat(null)
282
-          ->setBody(function () use ($node, $encode, $offset, $length) {
282
+          ->setBody(function() use ($node, $encode, $offset, $length) {
283 283
               $mime = $node->getContentType();
284 284
               $stream = $node->get();
285 285
               $name = $node->getName();
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
      */
351 351
     public function postReadonly($id = null, $p = null, bool $readonly = true): Response
352 352
     {
353
-        return $this->bulk($id, $p, function ($node) use ($readonly) {
353
+        return $this->bulk($id, $p, function($node) use ($readonly) {
354 354
             $node->setReadonly($readonly);
355 355
 
356 356
             return ['status' => 204];
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
      */
596 596
     public function postMetaAttributes(?string $id = null, ?string $p = null): Response
597 597
     {
598
-        return $this->bulk($id, $p, function ($node) {
598
+        return $this->bulk($id, $p, function($node) {
599 599
             $node->setMetaAttributes($_POST);
600 600
 
601 601
             return ['status' => 204];
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
             );
678 678
         }
679 679
 
680
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
680
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
681 681
             $result = $node->copyTo($parent, $conflict);
682 682
 
683 683
             return [
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
             );
739 739
         }
740 740
 
741
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
741
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
742 742
             $result = $node->setParent($parent, $conflict);
743 743
             if (NodeInterface::CONFLICT_RENAME === $conflict) {
744 744
                 return [
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
             $at = $this->_verifyAttributes(['destroy' => $at])['destroy'];
794 794
         }
795 795
 
796
-        return $this->bulk($id, $p, function ($node) use ($force, $ignore_flag, $at) {
796
+        return $this->bulk($id, $p, function($node) use ($force, $ignore_flag, $at) {
797 797
             if (null === $at) {
798 798
                 $node->delete($force && $node->isDeleted() || $force && $ignore_flag);
799 799
             } else {
Please login to merge, or discard this patch.