Completed
Branch master (3adcdb)
by Raffael
08:09 queued 04:17
created
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   +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
@@ -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/lib/Bootstrap/ContainerBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Balloon\Bootstrap;
13 13
 
14
-use Balloon\App;
15 14
 use Composer\Autoload\ClassLoader as Composer;
16 15
 use Micro\Container\Container;
17 16
 use Noodlehaus\Config;
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Balloon\Filesystem\Node\File;
15 15
 use Balloon\Filesystem\Node\NodeInterface;
16 16
 use Balloon\Filesystem\Storage\Adapter\AdapterInterface;
17
-use Balloon\Filesystem\Storage\Adapter\Gridfs;
18 17
 use Psr\Log\LoggerInterface;
19 18
 
20 19
 class Storage
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/lib/Bootstrap/Cli.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
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     protected function setExceptionHandler(): self
118 118
     {
119
-        set_exception_handler(function ($e) {
119
+        set_exception_handler(function($e) {
120 120
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
121 121
                 'category' => get_class($this),
122 122
                 'exception' => $e,
Please login to merge, or discard this patch.
src/lib/Bootstrap/AbstractBootstrap.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
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function setErrorHandler(): self
44 44
     {
45
-        set_error_handler(function ($severity, $message, $file, $line) {
45
+        set_error_handler(function($severity, $message, $file, $line) {
46 46
             $log = $message.' in '.$file.':'.$line;
47 47
 
48 48
             switch ($severity) {
Please login to merge, or discard this patch.
src/lib/Bootstrap/Http.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
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         if ($this->auth->requireOne()) {
86 86
             if (!($this->auth->getIdentity()->getAdapter() instanceof AuthNone)) {
87
-                $this->auth->getIdentity()->getAttributeMap()->addMapper('binary', function ($value) {
87
+                $this->auth->getIdentity()->getAttributeMap()->addMapper('binary', function($value) {
88 88
                     return new Binary($value, Binary::TYPE_GENERIC);
89 89
                 });
90 90
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     protected function setExceptionHandler(): self
133 133
     {
134
-        set_exception_handler(function ($e) {
134
+        set_exception_handler(function($e) {
135 135
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
136 136
                 'category' => get_class($this),
137 137
                 'exception' => $e,
Please login to merge, or discard this patch.