Completed
Push — master ( e77e2d...a9f547 )
by Raffael
26:00
created
src/app/Balloon.App.Notification/Api/v2/Notifications.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,10 +221,10 @@
 block discarded – undo
221 221
     {
222 222
         $mail = new Message();
223 223
         $mail->setBody($body)
224
-          ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username'])
225
-          ->setSubject($subject)
226
-          ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients')
227
-          ->setBcc($receiver);
224
+            ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username'])
225
+            ->setSubject($subject)
226
+            ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients')
227
+            ->setBcc($receiver);
228 228
         $this->async->addJob(Mail::class, $mail->toString());
229 229
 
230 230
         return (new Response())->setCode(202);
Please login to merge, or discard this patch.
src/app/Balloon.App.Sharelink/Migration/Delta/SharelinkIntoApp.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
             $this->db->storage->updateOne(
50 50
                 ['_id' => $object['_id']],
51 51
                 [
52
-                  '$unset' => ['sharelink' => 1],
53
-                  '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']],
52
+                    '$unset' => ['sharelink' => 1],
53
+                    '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']],
54 54
                 ]
55 55
             );
56 56
         }
Please login to merge, or discard this patch.
src/app/Balloon.App.ClamAv/Scanner.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,6 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Constructor.
75 75
      *
76
-     * @param Database        $db
77 76
      * @param LoggerInterface $logger
78 77
      */
79 78
     public function __construct(SocketFactory $factory, LoggerInterface $logger, ?Iterable $config = null)
@@ -131,7 +130,7 @@  discard block
 block discarded – undo
131 130
      *
132 131
      * @param File $file
133 132
      *
134
-     * @return array
133
+     * @return File
135 134
      */
136 135
     public function scan(File $file): array
137 136
     {
Please login to merge, or discard this patch.
src/app/Balloon.App.Cli/Console/Jobs.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
     /**
51 51
      * Constructor.
52 52
      *
53
-     * @param App             $app
54 53
      * @param Async           $async
55 54
      * @param LoggerInterface $logger
56 55
      * @param GetOpt          $getopt
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Job.php 3 patches
Doc Comments   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Constructor.
74 74
      *
75
-     * @param Elasticsarch           $es
76
-     * @param Storage                $storage
75
+     * @param Elasticsearch           $es
77 76
      * @param Server                 $server
78 77
      * @param NodeAttributeDecorator $decorator
79 78
      * @param LoggerInterface        $logger
@@ -439,7 +438,6 @@  discard block
 block discarded – undo
439 438
     /**
440 439
      * Add or update blob.
441 440
      *
442
-     * @param File $node
443 441
      *
444 442
      * @return bool
445 443
      */
@@ -480,8 +478,6 @@  discard block
 block discarded – undo
480 478
      * Prepare references update.
481 479
      *
482 480
      * @param array $references
483
-     * @param array $new_references
484
-     * @param array $new_share_references
485 481
      *
486 482
      * @return array
487 483
      */
@@ -554,7 +550,6 @@  discard block
 block discarded – undo
554 550
     /**
555 551
      * Update blob.
556 552
      *
557
-     * @param File  $file
558 553
      * @param array $meta
559 554
      *
560 555
      * @return bool
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
341 341
         }
342 342
 
343 343
         $this->logger->debug('elasticsarch blob document ['.$result['_id'].'] has no references left, remove completely', [
344
-         'category' => get_class($this),
344
+            'category' => get_class($this),
345 345
         ]);
346 346
 
347 347
         return $this->deleteBlob($result['_id']);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     protected function addShare(Collection $collection): bool
272 272
     {
273 273
         $that = $this;
274
-        $collection->doRecursiveAction(function ($node) use ($that) {
274
+        $collection->doRecursiveAction(function($node) use ($that) {
275 275
             if ($node instanceof Collection) {
276 276
                 $that->addShare($node);
277 277
             } else {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     protected function deleteShare(Collection $collection): bool
293 293
     {
294 294
         $that = $this;
295
-        $collection->doRecursiveAction(function ($node) use ($that) {
295
+        $collection->doRecursiveAction(function($node) use ($that) {
296 296
             if ($node instanceof Collection) {
297 297
                 $that->deleteShare($node);
298 298
             } else {
Please login to merge, or discard this patch.
src/app/Balloon.App.Cli/Console/Group.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $this->logger->info('new group ['.$result.'] created', [
77 77
             'category' => get_class($this),
78
-       ]);
78
+        ]);
79 79
 
80 80
         return true;
81 81
     }
Please login to merge, or discard this patch.
src/lib/Migration/Delta/AddHashToHistory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 'foreignField' => '_id',
50 50
                 'localField' => 'history.storage._id',
51 51
                 'as' => 'blob',
52
-           ]],
52
+            ]],
53 53
         ]);
54 54
 
55 55
         foreach ($cursor as $object) {
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Adapter/Mail.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@
 block discarded – undo
113 113
         $body->addPart($html);
114 114
 
115 115
         $mail = (new Message())
116
-          ->setSubject($message->getSubject($receiver))
117
-          ->setBody($body)
118
-          ->setTo($address)
119
-          ->setEncoding('UTF-8');
116
+            ->setSubject($message->getSubject($receiver))
117
+            ->setBody($body)
118
+            ->setTo($address)
119
+            ->setEncoding('UTF-8');
120 120
 
121 121
         if (null === $sender) {
122 122
             $mail->setFrom($this->sender_address, $this->sender_name);
Please login to merge, or discard this patch.
src/lib/Bootstrap/Cli.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * Cli.
41 41
      *
42 42
      * @param LoggerInterface    $logger
43
-     * @param Getopt             $getopt
43
+     * @param GetOpt             $getopt
44 44
      * @param ContainerInterface $container
45 45
      */
46 46
     public function __construct(LoggerInterface $logger, GetOpt $getopt, ContainerInterface $container)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
      */
172 172
     protected function setExceptionHandler(): self
173 173
     {
174
-        set_exception_handler(function ($e) {
174
+        set_exception_handler(function($e) {
175 175
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
176 176
                 'category' => get_class($this),
177 177
                 'exception' => $e,
Please login to merge, or discard this patch.