Completed
Push — master ( 240190...ff35ff )
by ARCANEDEV
05:15
created
src/Traits/NodeTrait.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
     /**
423 423
      * Get the boundaries.
424 424
      *
425
-     * @return array
425
+     * @return integer[]
426 426
      */
427 427
     public function getBounds()
428 428
     {
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
      *
497 497
      * @param  array  $columns
498 498
      *
499
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
499
+     * @return EloquentCollection
500 500
      */
501 501
     public function getSiblings(array $columns = ['*'])
502 502
     {
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
      *
509 509
      * @param  array  $columns
510 510
      *
511
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
511
+     * @return EloquentCollection
512 512
      */
513 513
     public function getNextSiblings(array $columns = ['*'])
514 514
     {
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
      *
521 521
      * @param  array  $columns
522 522
      *
523
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
523
+     * @return EloquentCollection
524 524
      */
525 525
     public function getPrevSiblings(array $columns = ['*'])
526 526
     {
@@ -1011,7 +1011,7 @@  discard block
 block discarded – undo
1011 1011
      *
1012 1012
      * @param  int  $position
1013 1013
      *
1014
-     * @return int
1014
+     * @return boolean
1015 1015
      */
1016 1016
     protected function moveNode($position)
1017 1017
     {
@@ -1123,7 +1123,7 @@  discard block
 block discarded – undo
1123 1123
      * @param  \Illuminate\Database\Eloquent\Builder  $query
1124 1124
      * @param  string                                 $table
1125 1125
      *
1126
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder|\Illuminate\Database\Query\Builder
1126
+     * @return \Illuminate\Database\Eloquent\Builder
1127 1127
      */
1128 1128
     public function applyNestedSetScope($query, $table = null)
1129 1129
     {
@@ -1153,7 +1153,7 @@  discard block
 block discarded – undo
1153 1153
     /**
1154 1154
      * @param  array  $attributes
1155 1155
      *
1156
-     * @return self
1156
+     * @return QueryBuilder
1157 1157
      */
1158 1158
     public static function scoped(array $attributes)
1159 1159
     {
Please login to merge, or discard this patch.
src/Eloquent/DescendantsRelation.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * DescendantsRelation constructor.
40 40
      *
41 41
      * @param  \Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder  $builder
42
-     * @param  \Illuminate\Database\Eloquent\Model|NodeTrait      $model
42
+     * @param  Model      $model
43 43
      */
44 44
     public function __construct(QueryBuilder $builder, Model $model)
45 45
     {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * Get the results of the relationship.
156 156
      *
157
-     * @return mixed
157
+     * @return EloquentCollection
158 158
      */
159 159
     public function getResults()
160 160
     {
Please login to merge, or discard this patch.
src/Eloquent/QueryBuilder.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * Get ancestors of specified node.
129 129
      *
130
-     * @param  mixed  $id
130
+     * @param  NodeTrait  $id
131 131
      * @param  array  $columns
132 132
      *
133
-     * @return self
133
+     * @return \Illuminate\Database\Eloquent\Collection
134 134
      */
135 135
     public function ancestorsOf($id, array $columns = ['*'])
136 136
     {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     /**
326 326
      * Get wrapped `lft` and `rgt` column names.
327 327
      *
328
-     * @return array
328
+     * @return string[]
329 329
      */
330 330
     protected function wrappedColumns()
331 331
     {
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
      * @param  string  $col
490 490
      * @param  array   $params
491 491
      *
492
-     * @return string
492
+     * @return Expression
493 493
      */
494 494
     protected function columnPatch($col, array $params)
495 495
     {
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
     /**
569 569
      * Get the duplicates errors query.
570 570
      *
571
-     * @return \Illuminate\Database\Query\Builder
571
+     * @return Builder
572 572
      */
573 573
     protected function getDuplicatesQuery()
574 574
     {
Please login to merge, or discard this patch.