Passed
Push — master ( 5c43b9...be8900 )
by Raffael
11:17 queued 03:32
created
src/app/Balloon.App.Sharelink/Exception/TokenInvalid.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/Exception/LinkExpired.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/Constructor/Http.php 1 patch
Spacing   +4 added lines, -4 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
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             }
73 73
         });
74 74
 
75
-        $node_decorator_v2->addDecorator('sharelink_token', function ($node) use ($sharelink) {
75
+        $node_decorator_v2->addDecorator('sharelink_token', function($node) use ($sharelink) {
76 76
             $attributes = $sharelink->getSharelink($node);
77 77
 
78 78
             if (isset($attributes['token'])) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             }
81 81
         });
82 82
 
83
-        $node_decorator_v2->addDecorator('sharelink_expire', function ($node) use ($sharelink) {
83
+        $node_decorator_v2->addDecorator('sharelink_expire', function($node) use ($sharelink) {
84 84
             $attributes = $sharelink->getSharelink($node);
85 85
 
86 86
             if (isset($attributes['expiration'])) {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             }
91 91
         });
92 92
 
93
-        $node_decorator_v1->addDecorator('sharelink', function ($node) use ($sharelink) {
93
+        $node_decorator_v1->addDecorator('sharelink', function($node) use ($sharelink) {
94 94
             return isset($sharelink->getSharelink($node)['token']);
95 95
         });
96 96
 
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Migration/Delta/Installation.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/lib/Migration/Delta/UserCreatedDate.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/v2/Groups.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
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         $attributes = compact('namespace', 'optional');
273
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
273
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
274 274
 
275 275
         $id = $this->server->addGroup($name, $member, $attributes);
276 276
         $result = $this->decorator->decorate($this->server->getGroupById($id));
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     public function patch(string $id, ?array $member = null, ?string $namespace = null, ?array $optional = null): Response
310 310
     {
311 311
         $attributes = compact('namespace', 'optional', 'name', 'member');
312
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
312
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
313 313
 
314 314
         $group = $this->_getGroup($id, true);
315 315
         $group->setAttributes($attributes);
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Files.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
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 
343 343
             try {
344 344
                 $attributes = compact('changed', 'created', 'readonly', 'meta');
345
-                $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
345
+                $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
346 346
                 $attributes = $this->_verifyAttributes($attributes);
347 347
 
348 348
                 return $this->_put($file, $id, $p, $collection, $name, $attributes, $conflict);
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
         $content = fopen('php://input', 'rb');
464 464
 
465 465
         $attributes = compact('changed', 'created', 'readonly', 'meta');
466
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
466
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
467 467
         $attributes = $this->_verifyAttributes($attributes);
468 468
 
469 469
         return $this->_put($content, $id, $p, $collection, $name, $attributes, $conflict);
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/AttributeDecorator/NodeDecorator.php 1 patch
Spacing   +12 added lines, -12 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
@@ -141,20 +141,20 @@  discard block
 block discarded – undo
141 141
             'mime' => (string) $attributes['mime'],
142 142
             'readonly' => (bool) $attributes['readonly'],
143 143
             'directory' => $node instanceof Collection,
144
-            'meta' => function ($node) {
144
+            'meta' => function($node) {
145 145
                 return (object) $node->getMetaAttributes();
146 146
             },
147
-            'size' => function ($node) {
147
+            'size' => function($node) {
148 148
                 return $node->getSize();
149 149
             },
150
-            'path' => function ($node) {
150
+            'path' => function($node) {
151 151
                 try {
152 152
                     return $node->getPath();
153 153
                 } catch (\Exception $e) {
154 154
                     return null;
155 155
                 }
156 156
             },
157
-            'parent' => function ($node) {
157
+            'parent' => function($node) {
158 158
                 $id = $node->getAttributes()['parent'];
159 159
 
160 160
                 if (null === $id) {
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
 
164 164
                 return (string) $id;
165 165
             },
166
-            'access' => function ($node) use ($acl) {
166
+            'access' => function($node) use ($acl) {
167 167
                 return $acl->getAclPrivilege($node);
168 168
             },
169
-            'share' => function ($node) {
169
+            'share' => function($node) {
170 170
                 if ($node->isShared() || !$node->isSpecial()) {
171 171
                     return null;
172 172
                 }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     return null;
178 178
                 }
179 179
             },
180
-            'shareowner' => function ($node) use ($server, $fs) {
180
+            'shareowner' => function($node) use ($server, $fs) {
181 181
                 if (!$node->isSpecial()) {
182 182
                     return null;
183 183
                 }
@@ -223,20 +223,20 @@  discard block
 block discarded – undo
223 223
     protected function getTimeAttributes(NodeInterface $node, array $attributes): array
224 224
     {
225 225
         return [
226
-            'created' => function ($node) use ($attributes) {
226
+            'created' => function($node) use ($attributes) {
227 227
                 return $this->dateTimeToUnix($attributes['created']);
228 228
             },
229
-            'changed' => function ($node) use ($attributes) {
229
+            'changed' => function($node) use ($attributes) {
230 230
                 return $this->dateTimeToUnix($attributes['changed']);
231 231
             },
232
-            'deleted' => function ($node) use ($attributes) {
232
+            'deleted' => function($node) use ($attributes) {
233 233
                 if (false === $attributes['deleted']) {
234 234
                     return false;
235 235
                 }
236 236
 
237 237
                 return $this->dateTimeToUnix($attributes['destroy']);
238 238
             },
239
-            'destroy' => function ($node) use ($attributes) {
239
+            'destroy' => function($node) use ($attributes) {
240 240
                 if (null === $attributes['destroy']) {
241 241
                     return null;
242 242
                 }
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/AttributeDecorator/EventDecorator.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.