Completed
Push — master ( 44e430...fa5669 )
by Raffael
11:31
created
src/app/Balloon.App.Office/Api/v2/Documents.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Balloon\Filesystem\Node\Collection;
21 21
 use Balloon\Filesystem\Node\File;
22 22
 use Balloon\Server;
23
-use Balloon\Server\User;
24 23
 use Micro\Http\Response;
25 24
 
26 25
 class Documents extends Controller
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         $tpl = new Template($type);
174 174
 
175 175
         $attributes = compact('readonly', 'meta');
176
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
176
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
177 177
 
178 178
         $result = $parent->addFile($name, $tpl->get(), $attributes);
179 179
         $result = $this->decorator->decorate($result);
Please login to merge, or discard this patch.
src/lib/Filesystem/Delta.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,9 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Add delta event.
72 72
      *
73
-     * @param string        $name
74 73
      * @param NodeInterface $node
75
-     * @param array         $options
76 74
      *
77 75
      * @return ObjectId
78 76
      */
@@ -359,7 +357,8 @@  discard block
 block discarded – undo
359 357
     /**
360 358
      * Get delta feed filter.
361 359
      *
362
-     * @param array $cursor
360
+     * @param integer[] $cursor
361
+     * @param NodeInterface|null $node
363 362
      *
364 363
      * @return array
365 364
      */
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AbstractNode.php 2 patches
Doc Comments   +3 added lines, -9 removed lines patch added patch discarded remove patch
@@ -816,7 +816,6 @@  discard block
 block discarded – undo
816 816
     /**
817 817
      * Set app attributes.
818 818
      *
819
-     * @param AppInterface $app
820 819
      * @param array        $attributes
821 820
      *
822 821
      * @return NodeInterface
@@ -832,7 +831,6 @@  discard block
 block discarded – undo
832 831
     /**
833 832
      * Set app attribute.
834 833
      *
835
-     * @param AppInterface $app
836 834
      * @param string       $attribute
837 835
      * @param mixed        $value
838 836
      *
@@ -853,7 +851,6 @@  discard block
 block discarded – undo
853 851
     /**
854 852
      * Remove app attribute.
855 853
      *
856
-     * @param AppInterface $app
857 854
      *
858 855
      * @return NodeInterface
859 856
      */
@@ -870,7 +867,6 @@  discard block
 block discarded – undo
870 867
     /**
871 868
      * Remove app attribute.
872 869
      *
873
-     * @param AppInterface $app
874 870
      * @param string       $attribute
875 871
      *
876 872
      * @return NodeInterface
@@ -888,7 +884,6 @@  discard block
 block discarded – undo
888 884
     /**
889 885
      * Get app attribute.
890 886
      *
891
-     * @param AppInterface $app
892 887
      * @param string       $attribute
893 888
      *
894 889
      * @return mixed
@@ -905,7 +900,6 @@  discard block
 block discarded – undo
905 900
     /**
906 901
      * Get app attributes.
907 902
      *
908
-     * @param AppInterface $app
909 903
      *
910 904
      * @return array
911 905
      */
@@ -944,7 +938,7 @@  discard block
 block discarded – undo
944 938
     /**
945 939
      * Get meta attributes as array.
946 940
      *
947
-     * @param array $attribute Specify attributes to return
941
+     * @param array $attributes Specify attributes to return
948 942
      *
949 943
      * @return array
950 944
      */
@@ -1115,9 +1109,9 @@  discard block
 block discarded – undo
1115 1109
     /**
1116 1110
      * Get array value via string path.
1117 1111
      *
1118
-     * @param iterable $arr
1112
+     * @param iterable $array
1119 1113
      * @param string   $path
1120
-     * @param string   $seperator
1114
+     * @param string   $separator
1121 1115
      *
1122 1116
      * @return mixed
1123 1117
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -629,7 +629,7 @@
 block discarded – undo
629 629
             return true;
630 630
         }
631 631
 
632
-        return $this->doRecursiveAction(function ($node) use ($conflict, $recursion) {
632
+        return $this->doRecursiveAction(function($node) use ($conflict, $recursion) {
633 633
             $node->undelete($conflict, $recursion, false);
634 634
         }, NodeInterface::DELETED_ONLY);
635 635
     }
Please login to merge, or discard this patch.
src/lib/Hook/AutoCreateUser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         }
91 91
 
92 92
         $this->logger->info('found first time username ['.$identity->getIdentifier().'], auto-create user', [
93
-             'category' => get_class($this),
93
+                'category' => get_class($this),
94 94
         ]);
95 95
 
96 96
         $attributes = [];
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/Controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      * @param string $class      Force set node type
215 215
      * @param bool   $multiple   Allow $id to be an array
216 216
      * @param bool   $allow_root Allow instance of root collection
217
-     * @param bool   $deleted    How to handle deleted node
217
+     * @param integer   $deleted    How to handle deleted node
218 218
      *
219 219
      * @return NodeInterface
220 220
      */
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * @param string $id
249 249
      * @param string $path
250 250
      * @param string $class   Force set node type
251
-     * @param bool   $deleted How to handle deleted node
251
+     * @param integer   $deleted How to handle deleted node
252 252
      *
253 253
      * @return Generator
254 254
      */
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Groups.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -302,7 +302,6 @@
 block discarded – undo
302 302
      * HTTP/1.1 200 OK
303 303
      *
304 304
      * @param string $id
305
-     * @param array  $attributes
306 305
      *
307 306
      * @return Response
308 307
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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/Users.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -158,8 +158,6 @@  discard block
 block discarded – undo
158 158
      *     "name": "peter.meier"
159 159
      * }
160 160
      *
161
-     * @param string $id
162
-     * @param string $uname
163 161
      *
164 162
      * @return Response
165 163
      */
@@ -429,7 +427,6 @@  discard block
 block discarded – undo
429 427
      *
430 428
      * @param string $uname
431 429
      * @param string $id
432
-     * @param array  $attributes
433 430
      *
434 431
      * @return Response
435 432
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         }
389 389
 
390 390
         $attributes = compact('password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale', 'optional');
391
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
391
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
392 392
 
393 393
         if (isset($attributes['avatar'])) {
394 394
             $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC);
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
     public function patch(?string $id = null, ?string $uname = null, ?string $username = null, ?string $password = null, ?int $soft_quota = null, ?int $hard_quota = null, ?string $avatar = null, ?string $mail = null, ?bool $admin = false, ?string $namespace = null, ?string $locale = null, ?array $optional = null): Response
437 437
     {
438 438
         $attributes = compact('username', 'password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale', 'optional');
439
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
439
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
440 440
 
441 441
         if (isset($attributes['avatar'])) {
442 442
             $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC);
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Api/v2/Search.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      * @param array $query
108 108
      * @param array $attributes
109 109
      * @param int   $deleted
110
-     * @param mixed $limit
110
+     * @param integer $limit
111 111
      *
112 112
      * @return Response
113 113
      */
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Notifier.php 2 patches
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @param Database       $db
73 73
      * @param Server         $server
74
-     * @param LoggerInterace $logger
74
+     * @param LoggerInterface $logger
75 75
      * @param iterable       $config
76 76
      */
77 77
     public function __construct(Database $db, Server $server, LoggerInterface $logger, ?Iterable $config = null)
@@ -116,9 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @param iterable $receiver
118 118
      * @param User     $sender
119
-     * @param string   $subject
120
-     * @param string   $body
121
-     * @param array    $context
119
+     * @param string    $context
122 120
      *
123 121
      * @return bool
124 122
      */
@@ -226,10 +224,10 @@  discard block
 block discarded – undo
226 224
     /**
227 225
      * Add notification.
228 226
      *
229
-     * @param array            $receiver
230
-     * @param User             $user
227
+     * @param User            $receiver
231 228
      * @param MessageInterface $message
232 229
      * @param array            $context
230
+     * @param User $sender
233 231
      *
234 232
      * @return ObjectId
235 233
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 
405 405
             if ($node instanceof Collection && $recursive === true) {
406 406
                 $db = $this->db;
407
-                $node->doRecursiveAction(function ($child) use ($db, $subscription) {
407
+                $node->doRecursiveAction(function($child) use ($db, $subscription) {
408 408
                     $subscription['node_id'] = $child->getId();
409 409
                     $db->subscription->replaceOne(
410 410
                         [
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 
431 431
             if ($node instanceof Collection && $recursive === true) {
432 432
                 $db = $this->db;
433
-                $node->doRecursiveAction(function ($child) use ($db, $node_id, $user_id) {
433
+                $node->doRecursiveAction(function($child) use ($db, $node_id, $user_id) {
434 434
                     $db->subscription->deleteOne([
435 435
                         'user' => $user_id,
436 436
                         'node' => $node_id,
Please login to merge, or discard this patch.