Completed
Branch dev (276354)
by Raffael
15:43
created
src/lib/Filesystem/Delta.php 2 patches
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.
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
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
 
247 247
         foreach ($query['result'] as $log) {
248 248
             if (false === $query['has_more']) {
249
-                $query['last_id'] = (string) $log['_id'];
250
-                $query['last_ts'] = (string) $log['timestamp'];
249
+                $query['last_id'] = (string)$log['_id'];
250
+                $query['last_ts'] = (string)$log['timestamp'];
251 251
             }
252 252
 
253 253
             try {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                     }
293 293
 
294 294
                     $deleted_node = [
295
-                        'id' => (string) $log['node'],
295
+                        'id' => (string)$log['node'],
296 296
                         'deleted' => true,
297 297
                         'created' => null,
298 298
                         'changed' => $log['timestamp'],
@@ -405,13 +405,13 @@  discard block
 block discarded – undo
405 405
             $filter = $this->buildDeltaFeedFilter($cursor, $limit, $node);
406 406
 
407 407
             $result = $this->db->delta->find($filter, [
408
-                'skip' => (int) $cursor[1],
409
-                'limit' => (int) $limit,
408
+                'skip' => (int)$cursor[1],
409
+                'limit' => (int)$limit,
410 410
                 'sort' => ['timestamp' => 1],
411 411
             ]);
412 412
 
413 413
             $left = $this->db->delta->count($filter, [
414
-                'skip' => (int) $cursor[1],
414
+                'skip' => (int)$cursor[1],
415 415
                 'sort' => ['timestamp' => 1],
416 416
             ]);
417 417
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
             }
455 455
 
456 456
             $entry = [
457
-                'id' => (string) $event['node'],
457
+                'id' => (string)$event['node'],
458 458
                 'deleted' => true,
459 459
                 'created' => null,
460 460
                 'changed' => $event['timestamp'],
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
         if (5 !== count($cursor)) {
553 553
             return null;
554 554
         }
555
-        $cursor[1] = (int) $cursor[1];
555
+        $cursor[1] = (int)$cursor[1];
556 556
 
557 557
         return $cursor;
558 558
     }
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Api/v2/Search.php 2 patches
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.
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.Elasticsearch/Api/v1/Search.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/Converter.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.DesktopClient/DesktopClient.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
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
                 case 'github_request_url':
94 94
                 case 'github_request_timeout':
95 95
                 case 'github_request_useragent':
96
-                    $this->{$option} = (string) $value;
96
+                    $this->{$option} = (string)$value;
97 97
 
98 98
                 break;
99 99
                 case 'github_request_timeout':
100
-                    $this->github_request_timeout = (int) $value;
100
+                    $this->github_request_timeout = (int)$value;
101 101
 
102 102
                 break;
103 103
                 case 'formats':
Please login to merge, or discard this patch.
src/app/Balloon.App.DesktopClient/Api/v2/Download.php 1 patch
Spacing   +2 added lines, -2 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
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             ->setHeader('Content-Type', 'application/octet-stream')
65 65
             ->setHeader('Content-Transfer-Encoding', 'binary')
66 66
             ->setOutputFormat(null)
67
-            ->setBody(function () use ($url) {
67
+            ->setBody(function() use ($url) {
68 68
                 $stream = fopen($url, 'r');
69 69
                 while (!feof($stream)) {
70 70
                     echo fread($stream, 8192);
Please login to merge, or discard this patch.
src/app/Balloon.App.Sharelink/Api/v2/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.Sharelink/Api/v1/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.Office/Api/v2/Wopi/Document.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.