Completed
Push — master ( 049e48...c56598 )
by ARCANEDEV
05:26
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   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     /**
325 325
      * Get the boundaries.
326 326
      *
327
-     * @return array
327
+     * @return integer[]
328 328
      */
329 329
     public function getBounds()
330 330
     {
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
      *
756 756
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $parent
757 757
      *
758
-     * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable
758
+     * @return NodeTrait
759 759
      */
760 760
     public function prependToNode(Nodeable $parent)
761 761
     {
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $parent
769 769
      * @param  bool                                            $prepend
770 770
      *
771
-     * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable
771
+     * @return NodeTrait
772 772
      */
773 773
     public function appendOrPrependTo(Nodeable $parent, $prepend = false)
774 774
     {
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
      *
786 786
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $node
787 787
      *
788
-     * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable
788
+     * @return NodeTrait
789 789
      */
790 790
     public function afterNode(Nodeable $node)
791 791
     {
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
      *
798 798
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $node
799 799
      *
800
-     * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable
800
+     * @return NodeTrait
801 801
      */
802 802
     public function beforeNode(Nodeable $node)
803 803
     {
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $node
811 811
      * @param  bool                                            $after
812 812
      *
813
-     * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable
813
+     * @return NodeTrait
814 814
      */
815 815
     public function beforeOrAfterNode(Nodeable $node, $after = false)
816 816
     {
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
      *
916 916
      * @param  int  $position
917 917
      *
918
-     * @return int
918
+     * @return boolean
919 919
      */
920 920
     protected function moveNode($position)
921 921
     {
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
      * @param  \Illuminate\Database\Eloquent\Builder  $query
1016 1016
      * @param  string                                 $table
1017 1017
      *
1018
-     * @return \Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder|\Illuminate\Database\Query\Builder
1018
+     * @return \Illuminate\Database\Eloquent\Builder
1019 1019
      */
1020 1020
     public function applyNestedSetScope($query, $table = null)
1021 1021
     {
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
     /**
1038 1038
      * @param  array  $attributes
1039 1039
      *
1040
-     * @return self
1040
+     * @return Eloquent\QueryBuilder
1041 1041
      */
1042 1042
     public static function scoped(array $attributes)
1043 1043
     {
@@ -1166,7 +1166,7 @@  discard block
 block discarded – undo
1166 1166
      *
1167 1167
      * @param  \Arcanedev\LaravelNestedSet\Contracts\Nodeable  $node
1168 1168
      *
1169
-     * @return self
1169
+     * @return Nodeable
1170 1170
      *
1171 1171
      * @throws \LogicException
1172 1172
      */
Please login to merge, or discard this patch.