@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php namespace Arcanedev\LaravelNestedSet\Eloquent; |
2 | 2 | |
3 | -use Arcanedev\LaravelNestedSet\Utilities\NestedSet; |
|
4 | 3 | use Arcanedev\LaravelNestedSet\Traits\NodeTrait; |
4 | +use Arcanedev\LaravelNestedSet\Utilities\NestedSet; |
|
5 | 5 | use Illuminate\Database\Eloquent\Builder; |
6 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | 7 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
@@ -126,7 +126,7 @@ |
||
126 | 126 | /** |
127 | 127 | * Get ancestors of specified node. |
128 | 128 | * |
129 | - * @param mixed $id |
|
129 | + * @param NodeTrait $id |
|
130 | 130 | * @param array $columns |
131 | 131 | * |
132 | 132 | * @return self |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php namespace Arcanedev\LaravelNestedSet\Traits; |
2 | 2 | |
3 | -use Arcanedev\LaravelNestedSet\Eloquent\DescendantsRelation; |
|
4 | 3 | use Arcanedev\LaravelNestedSet\Eloquent\Collection; |
4 | +use Arcanedev\LaravelNestedSet\Eloquent\DescendantsRelation; |
|
5 | 5 | use Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder; |
6 | 6 | use Arcanedev\LaravelNestedSet\Utilities\NestedSet; |
7 | 7 | use Exception; |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | /** |
407 | 407 | * Get the boundaries. |
408 | 408 | * |
409 | - * @return array |
|
409 | + * @return integer[] |
|
410 | 410 | */ |
411 | 411 | public function getBounds() |
412 | 412 | { |
@@ -994,7 +994,7 @@ discard block |
||
994 | 994 | * |
995 | 995 | * @param int $position |
996 | 996 | * |
997 | - * @return int |
|
997 | + * @return boolean |
|
998 | 998 | */ |
999 | 999 | protected function moveNode($position) |
1000 | 1000 | { |