Completed
Branch dev (0f747f)
by Raffael
17:07
created
src/app/Balloon.App.ClamAv/Scanner.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,6 @@
 block discarded – undo
79 79
     /**
80 80
      * Constructor.
81 81
      *
82
-     * @param Database        $db
83 82
      * @param LoggerInterface $logger
84 83
      */
85 84
     public function __construct(SocketFactory $factory, LoggerInterface $logger, ?Iterable $config = null)
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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
@@ -97,22 +97,22 @@  discard block
 block discarded – undo
97 97
         foreach ($config as $option => $value) {
98 98
             switch ($option) {
99 99
                 case 'socket':
100
-                    $this->socket = (string) $value;
100
+                    $this->socket = (string)$value;
101 101
 
102 102
                     break;
103 103
                 case 'max_stream_size':
104
-                    $this->max_stream_size = (int) $value;
104
+                    $this->max_stream_size = (int)$value;
105 105
 
106 106
                     break;
107 107
                 case 'aggressiveness':
108
-                    if ((int) $value > 3 || (int) $value < 0) {
109
-                        throw new Exception('invalid config value ['.(int) $value.'] for aggressiveness');
108
+                    if ((int)$value > 3 || (int)$value < 0) {
109
+                        throw new Exception('invalid config value ['.(int)$value.'] for aggressiveness');
110 110
                     }
111
-                    $this->aggressiveness = (int) $value;
111
+                    $this->aggressiveness = (int)$value;
112 112
 
113 113
                     break;
114 114
                 case 'timeout':
115
-                    $this->timeout = (int) $value;
115
+                    $this->timeout = (int)$value;
116 116
 
117 117
                     break;
118 118
                 break;
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Job.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * Constructor.
47 47
      *
48
-     * @param Async $async
49 48
      */
50 49
     public function __construct(Converter $converter, Server $server, LoggerInterface $logger)
51 50
     {
@@ -57,8 +56,6 @@  discard block
 block discarded – undo
57 56
     /**
58 57
      * Start job.
59 58
      *
60
-     * @param Server          $server
61
-     * @param LoggerInterface $logger
62 59
      *
63 60
      * @return bool
64 61
      */
Please login to merge, or discard this 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
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
 
72 72
         $slaves = $file->getAppAttribute(__NAMESPACE__, 'slaves');
73 73
 
74
-        if (is_array($slaves) && isset($slaves[(string) $this->data['slave']])) {
75
-            $slave = $slaves[(string) $this->data['slave']];
74
+        if (is_array($slaves) && isset($slaves[(string)$this->data['slave']])) {
75
+            $slave = $slaves[(string)$this->data['slave']];
76 76
         } else {
77 77
             throw new Exception('unknown slave node');
78 78
         }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
         $node->setReadonly();
122 122
 
123
-        $slaves[(string) $this->data['slave']]['node'] = $node->getId();
123
+        $slaves[(string)$this->data['slave']]['node'] = $node->getId();
124 124
         $file->setAppAttribute(__NAMESPACE__, 'slaves', $slaves);
125 125
 
126 126
         return true;
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Session.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
      * @param ObjectId $session_id
149 149
      * @param string   $access_token
150 150
      *
151
-     * @return Session
151
+     * @return Session|null
152 152
      */
153 153
     public static function getByAccessToken(Server $server, ObjectId $session_id, string $access_token): self
154 154
     {
Please login to merge, or discard this 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.Preview/Job.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
     /**
36 36
      * Constructor.
37 37
      *
38
-     * @param App    $app
39 38
      * @param Server $server
40 39
      */
41 40
     public function __construct(PreviewCreator $preview, Server $server)
Please login to merge, or discard this 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.Preview/PreviewCreator.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,6 @@
 block discarded – undo
31 31
     /**
32 32
      * Constructor.
33 33
      *
34
-     * @param Router $router
35
-     * @param Hook   $hook
36 34
      */
37 35
     public function __construct(Database $db, LoggerInterface $logger, Converter $converter)
38 36
     {
Please login to merge, or discard this 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/Converter/Result.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
      * Create result.
33 33
      *
34 34
      * @param string     $path
35
-     * @param resource   $stream
36
-     * @param null|mixed $resource
35
+     * @param resource $resource
37 36
      */
38 37
     public function __construct(string $path, $resource = null)
39 38
     {
Please login to merge, or discard this 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/Filesystem/Node/Collection.php 2 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * Get real id (reference).
312 312
      *
313
-     * @return ObjectId
313
+     * @return ObjectId|null
314 314
      */
315 315
     public function getRealId(): ?ObjectId
316 316
     {
@@ -339,10 +339,9 @@  discard block
 block discarded – undo
339 339
     /**
340 340
      * Fetch children items of this collection.
341 341
      *
342
-     * @param string $node
343 342
      * @param int    $deleted
344 343
      * @param array  $filter
345
-     * @param mixed  $name
344
+     * @param string  $name
346 345
      *
347 346
      * @return NodeInterface
348 347
      */
@@ -922,7 +921,7 @@  discard block
 block discarded – undo
922 921
      * @param string $name
923 922
      * @param string $data
924 923
      *
925
-     * @return File
924
+     * @return string
926 925
      */
927 926
     public function createFile($name, $data = null): String
928 927
     {
Please login to merge, or discard this 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
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
         $this->deleted = new UTCDateTime();
464 464
 
465 465
         if (!$this->isReference()) {
466
-            $this->doRecursiveAction(function ($node) use ($recursion) {
466
+            $this->doRecursiveAction(function($node) use ($recursion) {
467 467
                 $node->delete(false, $recursion, false);
468 468
             }, NodeInterface::DELETED_EXCLUDE, false);
469 469
         }
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 
530 530
         $node = $this->_db->storage->findOne($find);
531 531
 
532
-        return (bool) $node;
532
+        return (bool)$node;
533 533
     }
534 534
 
535 535
     /**
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
     protected function _forceDelete(?string $recursion = null, bool $recursion_first = true): bool
1000 1000
     {
1001 1001
         if (!$this->isReference()) {
1002
-            $this->doRecursiveAction(function ($node) use ($recursion) {
1002
+            $this->doRecursiveAction(function($node) use ($recursion) {
1003 1003
                 $node->delete(true, $recursion, false);
1004 1004
             }, NodeInterface::DELETED_INCLUDE, false);
1005 1005
         }
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage/Adapter/AdapterInterface.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
     /**
30 30
      * Delete file.
31 31
      *
32
-     * @param string $id
33 32
      * @param array  $attributes
34 33
      *
35 34
      * @return bool
Please login to merge, or discard this 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/Hook.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,6 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * Inject hook.
60 60
      *
61
-     * @param HookInterface $adapter
62 61
      *
63 62
      * @return AdapterAwareInterface
64 63
      */
@@ -198,7 +197,7 @@  discard block
 block discarded – undo
198 197
      *
199 198
      * @param string $name
200 199
      *
201
-     * @return mixed
200
+     * @return HookInterface
202 201
      */
203 202
     public function getAdapter(string $name)
204 203
     {
Please login to merge, or discard this 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.