@@ -72,8 +72,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 554 | 550 | /** |
| 555 | 551 | * Update blob. |
| 556 | 552 | * |
| 557 | - * @param File $file |
|
| 558 | 553 | * @param array $meta |
| 559 | 554 | * |
| 560 | 555 | * @return bool |
@@ -341,7 +341,7 @@ |
||
| 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']); |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 { |
@@ -11,7 +11,6 @@ |
||
| 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; |
@@ -14,7 +14,6 @@ |
||
| 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 |
@@ -75,7 +75,7 @@ |
||
| 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 | } |
@@ -49,7 +49,7 @@ |
||
| 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) { |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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, |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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, |