Completed
Push — master ( cb4013...dddeda )
by ARCANEDEV
04:16
created
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.
src/NodeTrait.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     /**
306 306
      * Get the boundaries.
307 307
      *
308
-     * @return array
308
+     * @return integer[]
309 309
      */
310 310
     public function getBounds()
311 311
     {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      *
388 388
      * @param  array  $columns
389 389
      *
390
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
390
+     * @return EloquentCollection
391 391
      */
392 392
     public function getSiblings(array $columns = ['*'])
393 393
     {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      *
400 400
      * @param  array  $columns
401 401
      *
402
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
402
+     * @return EloquentCollection
403 403
      */
404 404
     public function getNextSiblings(array $columns = ['*'])
405 405
     {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      *
412 412
      * @param  array  $columns
413 413
      *
414
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\Collection|self[]
414
+     * @return EloquentCollection
415 415
      */
416 416
     public function getPrevSiblings(array $columns = ['*'])
417 417
     {
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
      *
889 889
      * @param  int  $position
890 890
      *
891
-     * @return int
891
+     * @return boolean
892 892
      */
893 893
     protected function moveNode($position)
894 894
     {
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
      * @param  \Illuminate\Database\Eloquent\Builder  $query
989 989
      * @param  string                                 $table
990 990
      *
991
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder|\Illuminate\Database\Query\Builder
991
+     * @return \Illuminate\Database\Eloquent\Builder
992 992
      */
993 993
     public function applyNestedSetScope($query, $table = null)
994 994
     {
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
     /**
1011 1011
      * @param  array  $attributes
1012 1012
      *
1013
-     * @return self
1013
+     * @return Eloquent\QueryBuilder
1014 1014
      */
1015 1015
     public static function scoped(array $attributes)
1016 1016
     {
Please login to merge, or discard this patch.