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.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.
src/app/Balloon.App.Notification/Notifier.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     /**
95 95
      * Send notification.
96
+     * @param User $sender
96 97
      */
97 98
     public function notify(iterable $receiver, ?User $sender, MessageInterface $message): bool
98 99
     {
@@ -180,6 +181,7 @@  discard block
 block discarded – undo
180 181
 
181 182
     /**
182 183
      * Add notification.
184
+     * @param User $sender
183 185
      */
184 186
     public function postNotification(User $receiver, ?User $sender, MessageInterface $message): ObjectId
185 187
     {
@@ -206,6 +208,8 @@  discard block
 block discarded – undo
206 208
 
207 209
     /**
208 210
      * Get notifications.
211
+     * @param integer $offset
212
+     * @param integer $limit
209 213
      */
210 214
     public function getNotifications(User $user, array $query = [], ?int $offset = null, ?int $limit = null, ?int &$total = null): iterable
211 215
     {
@@ -288,6 +292,7 @@  discard block
 block discarded – undo
288 292
 
289 293
     /**
290 294
      * Get subscription.
295
+     * @return NodeInterface
291 296
      */
292 297
     public function getSubscription(NodeInterface $node, User $user): ?array
293 298
     {
Please login to merge, or discard this patch.
src/lib/Filesystem/Delta.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -98,6 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
     /**
100 100
      * Build a single dimension array with all nodes.
101
+     * @param integer[] $cursor
101 102
      */
102 103
     public function buildFeedFromCurrentState(?array $cursor = null, int $limit = 100, ?NodeInterface $node = null): array
103 104
     {
@@ -220,6 +221,7 @@  discard block
 block discarded – undo
220 221
 
221 222
     /**
222 223
      * Get delta feed with changes and cursor.
224
+     * @param NodeInterface $node
223 225
      */
224 226
     public function getDeltaFeed(?string $cursor = null, int $limit = 250, ?NodeInterface $node = null): array
225 227
     {
@@ -327,6 +329,7 @@  discard block
 block discarded – undo
327 329
 
328 330
     /**
329 331
      * Get event log.
332
+     * @param NodeInterface $node
330 333
      */
331 334
     public function getEventLog(array $query = [], int $limit = 100, int $skip = 0, ?NodeInterface $node = null, ?int &$total = null): iterable
332 335
     {
@@ -584,6 +587,7 @@  discard block
 block discarded – undo
584 587
 
585 588
     /**
586 589
      * Get children with custom filter.
590
+     * @param integer $limit
587 591
      */
588 592
     protected function findNodeAttributesWithCustomFilter(
589 593
         ?array $filter = null,
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AbstractNode.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -1113,6 +1113,8 @@
 block discarded – undo
1113 1113
 
1114 1114
     /**
1115 1115
      * Duplicate name with a uniqid within name.
1116
+     * @param string $name
1117
+     * @param string $class
1116 1118
      */
1117 1119
     public function getDuplicateName(?string $name = null, ?string $class = null): string
1118 1120
     {
Please login to merge, or discard this patch.
src/app/Balloon.App.Wopi/Api/v2/Wopi/Files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@
 block discarded – undo
263 263
         $response = (new Response())
264 264
             ->setCode(200)
265 265
             ->setHeader('X-WOPI-ItemVersion', (string) $file->getVersion())
266
-            ->setBody(function () use ($stream) {
266
+            ->setBody(function() use ($stream) {
267 267
                 if ($stream === null) {
268 268
                     echo '';
269 269
 
Please login to merge, or discard this patch.
src/app/Balloon.App.Preview/Constructor/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             ->prependRoute(new Route('/api/v2/files/preview(/|\z)', v2\Preview::class))
32 32
             ->prependRoute(new Route('/api/v2/files/{id:#([0-9a-z]{24})#}/preview(/|\z)', v2\Preview::class));
33 33
 
34
-        $decorator->addDecorator('preview', function ($node) {
34
+        $decorator->addDecorator('preview', function($node) {
35 35
             if ($node instanceof Collection) {
36 36
                 return null;
37 37
             }
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Nodes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             }
103 103
         }
104 104
 
105
-        return $this->bulk($id, function ($node) use ($parent, $conflict, $move) {
105
+        return $this->bulk($id, function($node) use ($parent, $conflict, $move) {
106 106
             if (true === $move) {
107 107
                 $node = $node->setParent($parent, $conflict);
108 108
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             return (new Response())->setCode(200)->setBody($result);
170 170
         }
171 171
 
172
-        return $this->bulk($id, function ($node) use ($attributes) {
172
+        return $this->bulk($id, function($node) use ($attributes) {
173 173
             return [
174 174
                 'code' => 200,
175 175
                 'data' => $this->node_decorator->decorate($node, $attributes),
@@ -205,11 +205,11 @@  discard block
 block discarded – undo
205 205
     public function patch(string $id, ?string $name = null, ?array $meta = null, ?bool $readonly = null, ?array $filter = null, ?array $acl = null, $lock = null): Response
206 206
     {
207 207
         $attributes = compact('name', 'meta', 'readonly', 'filter', 'acl', 'lock');
208
-        $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); });
208
+        $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); });
209 209
 
210 210
         $lock = $_SERVER['HTTP_LOCK_TOKEN'] ?? null;
211 211
 
212
-        return $this->bulk($id, function ($node) use ($attributes, $lock) {
212
+        return $this->bulk($id, function($node) use ($attributes, $lock) {
213 213
             foreach ($attributes as $attribute => $value) {
214 214
                 switch ($attribute) {
215 215
                     case 'name':
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             );
270 270
         }
271 271
 
272
-        return $this->bulk($id, function ($node) use ($parent, $conflict) {
272
+        return $this->bulk($id, function($node) use ($parent, $conflict) {
273 273
             $result = $node->copyTo($parent, $conflict);
274 274
 
275 275
             return [
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             );
297 297
         }
298 298
 
299
-        return $this->bulk($id, function ($node) use ($parent, $conflict) {
299
+        return $this->bulk($id, function($node) use ($parent, $conflict) {
300 300
             $result = $node->setParent($parent, $conflict);
301 301
 
302 302
             return [
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             $at = $this->_verifyAttributes(['destroy' => $at])['destroy'];
322 322
         }
323 323
 
324
-        return $this->bulk($id, function ($node) use ($force, $ignore_flag, $at) {
324
+        return $this->bulk($id, function($node) use ($force, $ignore_flag, $at) {
325 325
             if (null === $at) {
326 326
                 $node->delete($force && $node->isDeleted() || $force && $ignore_flag);
327 327
             } else {
Please login to merge, or discard this patch.
src/app/Balloon.App.Webauthn/RequestChallenge/RequestChallengeFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
 
63 63
         // Public Key Credential Request Options
64 64
         $key = new PublicKeyCredentialRequestOptions(
65
-            random_bytes(32),                                                           // Challenge
66
-            60000,                                                                      // Timeout
67
-            $domain,                                                          // Relying Party ID
68
-            $registeredPublicKeyCredentialDescriptors,                                  // Registered PublicKeyCredentialDescriptor classes
65
+            random_bytes(32), // Challenge
66
+            60000, // Timeout
67
+            $domain, // Relying Party ID
68
+            $registeredPublicKeyCredentialDescriptors, // Registered PublicKeyCredentialDescriptor classes
69 69
             PublicKeyCredentialRequestOptions::USER_VERIFICATION_REQUIREMENT_PREFERRED, // User verification requirement
70 70
             $this->auth_extensions
71 71
         );
Please login to merge, or discard this patch.