Completed
Branch dev (276354)
by Raffael
15:43
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
@@ -99,22 +99,22 @@  discard block
 block discarded – undo
99 99
         foreach ($config as $option => $value) {
100 100
             switch ($option) {
101 101
                 case 'socket':
102
-                    $this->socket = (string) $value;
102
+                    $this->socket = (string)$value;
103 103
 
104 104
                     break;
105 105
                 case 'max_stream_size':
106
-                    $this->max_stream_size = (int) $value;
106
+                    $this->max_stream_size = (int)$value;
107 107
 
108 108
                     break;
109 109
                 case 'aggressiveness':
110
-                    if ((int) $value > 3 || (int) $value < 0) {
111
-                        throw new InvalidArgumentException('invalid config value ['.(int) $value.'] for aggressiveness');
110
+                    if ((int)$value > 3 || (int)$value < 0) {
111
+                        throw new InvalidArgumentException('invalid config value ['.(int)$value.'] for aggressiveness');
112 112
                     }
113
-                    $this->aggressiveness = (int) $value;
113
+                    $this->aggressiveness = (int)$value;
114 114
 
115 115
                     break;
116 116
                 case 'timeout':
117
-                    $this->timeout = (int) $value;
117
+                    $this->timeout = (int)$value;
118 118
 
119 119
                     break;
120 120
                 break;
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Api/v1/Document.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 Document extends Controller
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
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
 
95 95
         foreach ($document->getSessions() as $session) {
96 96
             $sessions[] = [
97
-                'id' => (string) $session['_id'],
97
+                'id' => (string)$session['_id'],
98 98
                 'created' => $session['_id']->getTimestamp(),
99 99
                 'user' => [
100
-                    'id' => (string) $session['user'],
100
+                    'id' => (string)$session['user'],
101 101
                     'name' => $this->server->getUserById($session['user'])->getUsername(),
102 102
                 ],
103 103
             ];
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
         return (new Response())->setCode(201)->setBody([
172 172
             'code' => 201,
173
-            'data' => (string) $result->getId(),
173
+            'data' => (string)$result->getId(),
174 174
         ]);
175 175
     }
176 176
 }
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/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/Delta.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -424,8 +424,8 @@
 block discarded – undo
424 424
         ];
425 425
 
426 426
         $node->getFilesystem()->getDatabase()->delta->updateMany([
427
-             'node' => [
428
-                 '$in' => $toset,
427
+                'node' => [
428
+                    '$in' => $toset,
429 429
             ],
430 430
         ], $action);
431 431
 
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/AbstractHook.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function preCopyFile(
117 117
         File $node,
118 118
         Collection $parent,
119
-       int $conflict,
119
+        int $conflict,
120 120
         ?string $recursion,
121 121
         bool $recursion_first
122 122
     ): void {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         File $node,
130 130
         Collection $parent,
131 131
         File $new_node,
132
-       int $conflict,
132
+        int $conflict,
133 133
         ?string $recursion,
134 134
         bool $recursion_first
135 135
     ): void {
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.