Completed
Branch master (5de492)
by Raffael
10:53 queued 05:49
created
src/app/Balloon.App.Api/v1/AttributeDecorator/RoleDecorator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
         }
106 106
 
107 107
         return [
108
-            'created' => function ($role, $requested) use ($attributes) {
108
+            'created' => function($role, $requested) use ($attributes) {
109 109
                 return $attributes['created']->toDateTime()->format('c');
110 110
             },
111
-            'changed' => function ($role, $requested) use ($attributes) {
111
+            'changed' => function($role, $requested) use ($attributes) {
112 112
                 return $attributes['changed']->toDateTime()->format('c');
113 113
             },
114
-            'deleted' => function ($role, $requested) use ($attributes) {
114
+            'deleted' => function($role, $requested) use ($attributes) {
115 115
                 if (false === $attributes['deleted']) {
116 116
                     return null;
117 117
                 }
@@ -164,14 +164,14 @@  discard block
 block discarded – undo
164 164
             'name' => (string) $attributes['username'],
165 165
             'namespace' => (string) $attributes['namespace'],
166 166
             'mail' => (string) $attributes['mail'],
167
-            'avatar' => function ($role, $requested) use ($attributes) {
167
+            'avatar' => function($role, $requested) use ($attributes) {
168 168
                 if ($attributes['avatar'] instanceof Binary) {
169 169
                     return base64_encode($attributes['avatar']->getData());
170 170
                 }
171 171
 
172 172
                 return null;
173 173
             },
174
-            'soft_quota' => function ($role, $requested) use ($attributes, $user) {
174
+            'soft_quota' => function($role, $requested) use ($attributes, $user) {
175 175
                 if ($user === null) {
176 176
                     return null;
177 177
                 }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
                 return null;
184 184
             },
185
-            'hard_quota' => function ($role, $requested) use ($attributes, $user) {
185
+            'hard_quota' => function($role, $requested) use ($attributes, $user) {
186 186
                 if ($user === null) {
187 187
                     return null;
188 188
                 }
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/AttributeDecorator/DeltaDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/Resource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/Node.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             }
193 193
         }
194 194
 
195
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict, $move) {
195
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict, $move) {
196 196
             if (true === $move) {
197 197
                 $node = $node->setParent($parent, $conflict);
198 198
             }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
         $node = $this->_getNode($id, $p);
275 275
         if ($node instanceof Collection) {
276
-            return (new Response())->setBody(function () use ($node) {
276
+            return (new Response())->setBody(function() use ($node) {
277 277
                 $node->getZip();
278 278
             });
279 279
         }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
         return (new Response())
294 294
           ->setOutputFormat(null)
295
-          ->setBody(function () use ($node, $encode, $offset, $length) {
295
+          ->setBody(function() use ($node, $encode, $offset, $length) {
296 296
               $mime = $node->getContentType();
297 297
               $stream = $node->get();
298 298
               $name = $node->getName();
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function postReadonly($id = null, $p = null, bool $readonly = true): Response
367 367
     {
368
-        return $this->bulk($id, $p, function ($node) use ($readonly) {
368
+        return $this->bulk($id, $p, function($node) use ($readonly) {
369 369
             $node->setReadonly($readonly);
370 370
 
371 371
             return ['code' => 204];
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
      */
619 619
     public function postMetaAttributes(?string $id = null, ?string $p = null): Response
620 620
     {
621
-        return $this->bulk($id, $p, function ($node) {
621
+        return $this->bulk($id, $p, function($node) {
622 622
             $node->setMetaAttributes($_POST);
623 623
 
624 624
             return ['code' => 204];
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
             );
707 707
         }
708 708
 
709
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
709
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
710 710
             $result = $node->copyTo($parent, $conflict);
711 711
 
712 712
             return [
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
             );
771 771
         }
772 772
 
773
-        return $this->bulk($id, $p, function ($node) use ($parent, $conflict) {
773
+        return $this->bulk($id, $p, function($node) use ($parent, $conflict) {
774 774
             $result = $node->setParent($parent, $conflict);
775 775
             if (NodeInterface::CONFLICT_RENAME === $conflict) {
776 776
                 return [
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
             $at = $this->_verifyAttributes(['destroy' => $at])['destroy'];
830 830
         }
831 831
 
832
-        return $this->bulk($id, $p, function ($node) use ($force, $ignore_flag, $at) {
832
+        return $this->bulk($id, $p, function($node) use ($force, $ignore_flag, $at) {
833 833
             if (null === $at) {
834 834
                 $node->delete($force && $node->isDeleted() || $force && $ignore_flag);
835 835
             } else {
Please login to merge, or discard this patch.
src/app/Balloon.App.ClamAv/Scanner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Sharelink/Sharelink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/AttributeDecorator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
         return [
102 102
             'id' => (string) $slave['_id'],
103 103
             'format' => (string) $slave['format'],
104
-            'master' => function ($slave) use ($fs, $node_decorator) {
104
+            'master' => function($slave) use ($fs, $node_decorator) {
105 105
                 try {
106 106
                     return $node_decorator->decorate($fs->findNodeById($slave['master']), ['_links', 'id', 'name']);
107 107
                 } catch (\Exception $e) {
108 108
                     return null;
109 109
                 }
110 110
             },
111
-            'slave' => function ($slave) use ($fs, $node_decorator) {
111
+            'slave' => function($slave) use ($fs, $node_decorator) {
112 112
                 if (!isset($slave['slave'])) {
113 113
                     return null;
114 114
                 }
Please login to merge, or discard this patch.