Completed
Push — master ( b97427...e235cc )
by Raffael
30:35 queued 26:08
created
src/lib/Filesystem.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -477,6 +477,8 @@
 block discarded – undo
477 477
 
478 478
     /**
479 479
      * Get custom filtered children.
480
+     * @param integer $offset
481
+     * @param integer $limit
480 482
      */
481 483
     public function findNodesByFilterUser(int $deleted, array $filter, ?int $offset = null, ?int $limit = null): Generator
482 484
     {
Please login to merge, or discard this patch.
src/app/Balloon.App.Idp/Api/v2/Tokens.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $params = $response->getParameters();
44 44
 
45 45
         return (new Response())
46
-             ->setCode($response->getStatusCode())
47
-             ->setBody($params);
46
+                ->setCode($response->getStatusCode())
47
+                ->setBody($params);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Files.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         if ($index === $chunks) {
98 98
             $attributes = compact('changed', 'created', 'readonly', 'meta', 'acl');
99
-            $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
99
+            $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
100 100
             $attributes = $this->_verifyAttributes($attributes);
101 101
 
102 102
             return $this->_put($session, $id, $collection, $name, $attributes, $conflict);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $storage = $this->getStorage($id, $collection);
129 129
         $session = $storage->storeTemporaryFile($input, $this->server->getIdentity());
130 130
         $attributes = compact('changed', 'created', 'readonly', 'meta', 'acl');
131
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
131
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
132 132
         $attributes = $this->_verifyAttributes($attributes);
133 133
 
134 134
         return $this->_put($session, $id, $collection, $name, $attributes, $conflict);
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Users.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         }
162 162
 
163 163
         $attributes = compact('password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale');
164
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
164
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
165 165
 
166 166
         if (isset($attributes['avatar'])) {
167 167
             $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     public function patch(string $id, ?string $username = null, ?string $password = null, ?int $soft_quota = null, ?int $hard_quota = null, ?string $avatar = null, ?string $mail = null, ?bool $admin = null, ?string $namespace = null, ?string $locale = null, ?bool $multi_factor_auth = null): Response
180 180
     {
181 181
         $attributes = compact('username', 'password', 'soft_quota', 'hard_quota', 'avatar', 'mail', 'admin', 'namespace', 'locale', 'multi_factor_auth');
182
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
182
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
183 183
 
184 184
         if (isset($attributes['avatar'])) {
185 185
             $attributes['avatar'] = new Binary(base64_decode($attributes['avatar']), Binary::TYPE_GENERIC);
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Api/v2/Subscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $node_decorator = $this->node_decorator;
59 59
         $notifier = $this->notifier;
60 60
 
61
-        return $this->bulk($id, function ($node) use ($node_decorator, $notifier, $subscribe, $exclude_me, $recursive) {
61
+        return $this->bulk($id, function($node) use ($node_decorator, $notifier, $subscribe, $exclude_me, $recursive) {
62 62
             $notifier->subscribeNode($node, $subscribe, $exclude_me, $recursive);
63 63
 
64 64
             return [
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      * @param string $class      Force set node type
74 74
      * @param bool   $multiple   Allow $id to be an array
75 75
      * @param bool   $allow_root Allow instance of root collection
76
-     * @param bool   $deleted    How to handle deleted node
76
+     * @param integer   $deleted    How to handle deleted node
77 77
      */
78 78
     protected function _getNode(
79 79
         ?string $id = null,
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Groups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         }
122 122
 
123 123
         $attributes = compact('namespace');
124
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
124
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
125 125
 
126 126
         $id = $this->server->addGroup($name, $member, $attributes);
127 127
         $result = $this->decorator->decorate($this->server->getGroupById($id));
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function patch(string $id, ?string $name = null, ?array $member = null, ?string $namespace = null): Response
136 136
     {
137 137
         $attributes = compact('namespace', 'name', 'member');
138
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
138
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
139 139
 
140 140
         $group = $this->_getGroup($id, true);
141 141
         $group->setAttributes($attributes);
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
             $share = $node->getFilesystem()->findRawNode($node->getReference());
247 247
         } catch (\Exception $e) {
248 248
             $this->logger->error('could not find share node ['.$node->getReference().'] for reference ['.$node->getId().'], dead reference?', [
249
-                 'category' => get_class($this),
250
-                 'exception' => $e,
249
+                    'category' => get_class($this),
250
+                    'exception' => $e,
251 251
             ]);
252 252
 
253 253
             return self::PRIVILEGE_DENY;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 
256 256
         if ($share['deleted'] instanceof UTCDateTime || true !== $share['shared']) {
257 257
             $this->logger->error('share node ['.$share['_id'].'] has been deleted, dead reference?', [
258
-                 'category' => get_class($this),
258
+                    'category' => get_class($this),
259 259
             ]);
260 260
 
261 261
             return self::PRIVILEGE_DENY;
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Converter.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -89,6 +89,8 @@
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * Get slaves.
92
+     * @param integer $offset
93
+     * @param integer $limit
92 94
      */
93 95
     public function getSlaves(File $node, array $query = [], ?int $offset = null, ?int $limit = null, ?int &$total = null): iterable
94 96
     {
Please login to merge, or discard this patch.