@@ -383,6 +383,8 @@ discard block |
||
| 383 | 383 | * Load nodes by id. |
| 384 | 384 | * |
| 385 | 385 | * @param null|mixed $class |
| 386 | + * @param string $id |
|
| 387 | + * @param string $path |
|
| 386 | 388 | */ |
| 387 | 389 | public function getNodes(?array $id = null, ?array $path = null, $class = null, int $deleted = NodeInterface::DELETED_EXCLUDE): Generator |
| 388 | 390 | { |
@@ -411,9 +413,10 @@ discard block |
||
| 411 | 413 | /** |
| 412 | 414 | * Load node. |
| 413 | 415 | * |
| 414 | - * @param null|mixed $id |
|
| 415 | - * @param null|mixed $path |
|
| 416 | + * @param string|null $id |
|
| 417 | + * @param string|null $path |
|
| 416 | 418 | * @param null|mixed $class |
| 419 | + * @param integer $deleted |
|
| 417 | 420 | */ |
| 418 | 421 | public function getNode($id = null, $path = null, $class = null, bool $multiple = false, bool $allow_root = false, ?int $deleted = null): NodeInterface |
| 419 | 422 | { |
@@ -465,6 +468,8 @@ discard block |
||
| 465 | 468 | |
| 466 | 469 | /** |
| 467 | 470 | * Find nodes with custom filters. |
| 471 | + * @param integer $offset |
|
| 472 | + * @param integer $limit |
|
| 468 | 473 | */ |
| 469 | 474 | public function findNodesByFilter(array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 470 | 475 | { |
@@ -491,6 +496,8 @@ discard block |
||
| 491 | 496 | |
| 492 | 497 | /** |
| 493 | 498 | * Get custom filtered children. |
| 499 | + * @param integer $offset |
|
| 500 | + * @param integer $limit |
|
| 494 | 501 | */ |
| 495 | 502 | public function findNodesByFilterUser(int $deleted, array $filter, ?int $offset = null, ?int $limit = null): Generator |
| 496 | 503 | { |
@@ -656,6 +656,7 @@ |
||
| 656 | 656 | |
| 657 | 657 | /** |
| 658 | 658 | * Create new file as a child from this collection. |
| 659 | + * @param string $name |
|
| 659 | 660 | */ |
| 660 | 661 | public function addFile($name, ?ObjectId $session = null, array $attributes = [], int $conflict = NodeInterface::CONFLICT_NOACTION, bool $clone = false): File |
| 661 | 662 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Balloon\Filesystem\Exception; |
| 18 | 18 | use Balloon\Filesystem\Storage\Adapter\AdapterInterface as StorageAdapterInterface; |
| 19 | 19 | use Balloon\Hook; |
| 20 | -use Balloon\Server\User; |
|
| 21 | 20 | use Generator; |
| 22 | 21 | use MimeType\MimeType; |
| 23 | 22 | use function MongoDB\BSON\fromJSON; |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $this->storage = $this->_parent->getStorage()->deleteCollection($this); |
| 363 | 363 | |
| 364 | 364 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
| 365 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
| 365 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
| 366 | 366 | $node->delete(false, $recursion, false); |
| 367 | 367 | }, NodeInterface::DELETED_EXCLUDE); |
| 368 | 368 | } |
@@ -917,7 +917,7 @@ discard block |
||
| 917 | 917 | protected function _forceDelete(?string $recursion = null, bool $recursion_first = true): bool |
| 918 | 918 | { |
| 919 | 919 | if (!$this->isReference() && !$this->isMounted() && !$this->isFiltered()) { |
| 920 | - $this->doRecursiveAction(function ($node) use ($recursion) { |
|
| 920 | + $this->doRecursiveAction(function($node) use ($recursion) { |
|
| 921 | 921 | $node->delete(true, $recursion, false); |
| 922 | 922 | }, NodeInterface::DELETED_INCLUDE); |
| 923 | 923 | } |