| @@ -23,11 +23,9 @@ | ||
| 23 | 23 | } | 
| 24 | 24 | |
| 25 | 25 | /** | 
| 26 | - * @param Node $node | |
| 27 | - * @param NodeCollection $children | |
| 28 | 26 | * @param $depth | 
| 29 | - * @param null|int $currentDepth | |
| 30 | - * @return bool|Node | |
| 27 | + * @param integer $currentDepth | |
| 28 | + * @return NodeCollection | |
| 31 | 29 | */ | 
| 32 | 30 | private function recursiveDepth(NodeCollection $nodeCollection, $depth = null, $currentDepth = 0) | 
| 33 | 31 |      { | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | } | 
| 40 | 40 | |
| 41 | 41 | /** | 
| 42 | - * @param array|NodeCollection $children | |
| 42 | + * @param Node $children | |
| 43 | 43 | * @return Node | 
| 44 | 44 | */ | 
| 45 | 45 | public function addChildren($children): self | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * Get a copy of this node | 
| 249 | 249 | * | 
| 250 | 250 | * @param null|int $depth | 
| 251 | - * @return Node | |
| 251 | + * @return callable | |
| 252 | 252 | */ | 
| 253 | 253 | public function copy($depth = null): self | 
| 254 | 254 |      { | 
| @@ -2,12 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Vine; | 
| 4 | 4 | |
| 5 | +use Vine\Commands\Copy; | |
| 5 | 6 | use Vine\Commands\Move; | 
| 6 | 7 | use Vine\Commands\Prune; | 
| 7 | 8 | use Vine\Commands\Shake; | 
| 8 | 9 | use Vine\Queries\Ancestors; | 
| 9 | 10 | use Vine\Queries\Count; | 
| 10 | -use Vine\Commands\Copy; | |
| 11 | 11 | use Vine\Queries\Pluck; | 
| 12 | 12 | |
| 13 | 13 | class Node | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Vine; | 
| 4 | 4 | |
| 5 | -use Vine\Commands\Shake; | |
| 6 | 5 | use Vine\Commands\Flatten; | 
| 7 | 6 | use Vine\Commands\Inflate; | 
| 8 | 7 | use Vine\Commands\Remove; | 
| @@ -84,7 +84,7 @@ discard block | ||
| 84 | 84 | |
| 85 | 85 | /** | 
| 86 | 86 | * @param $parentId | 
| 87 | - * @param $entryNode | |
| 87 | + * @param Node $entryNode | |
| 88 | 88 | * @return mixed | 
| 89 | 89 | */ | 
| 90 | 90 | private function addAsChild($parentId, $entryNode) | 
| @@ -101,7 +101,7 @@ discard block | ||
| 101 | 101 | |
| 102 | 102 | /** | 
| 103 | 103 | * @param $parentId | 
| 104 | - * @param $entryNode | |
| 104 | + * @param Node $entryNode | |
| 105 | 105 | * @return mixed | 
| 106 | 106 | */ | 
| 107 | 107 | private function addAsRoot($parentId, $entryNode) |