Test Failed
Pull Request — master (#289)
by Raffael
16:08
created
src/lib/Filesystem.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -383,6 +383,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/Collection.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -656,6 +656,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.