Passed
Push — features/47-laravelmethods ( 9642d7...9881c8 )
by Luke
04:14
created
src/Contracts/CollectionInterface.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -491,7 +491,6 @@
 block discarded – undo
491 491
      *
492 492
      * Reduces this collection to one value by passing value, key, and the return value from the previous iteration
493 493
      * until only one value remains. Iteration begins from the last item in the collection and moves up.
494
-
495 494
      * @param callable $callback The callback function
496 495
      * @param          $initial  The initial "carry" value
497 496
      *
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param string|int $index Set value at this index
63 63
      * @param mixed      $value Set this value at index
64 64
      *
65
-     * @return mixed
65
+     * @return CollectionInterface
66 66
      */
67 67
     public function set($index, $value);
68 68
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @param string|int $index Delete item at this index
75 75
      *
76
-     * @return mixed
76
+     * @return CollectionInterface
77 77
      */
78 78
     public function delete($index);
79 79
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param string|int $index Add value at this index
109 109
      * @param mixed      $value Add this value at index
110 110
      *
111
-     * @return mixed
111
+     * @return CollectionInterface
112 112
      */
113 113
     public function add($index, $value);
114 114
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param int  $nth    The number of items between cycles
165 165
      * @param null $offset An optional offset to begin from
166 166
      *
167
-     * @return mixed
167
+     * @return CollectionInterface
168 168
      */
169 169
     public function nth($nth, $offset = null);
170 170
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      *
229 229
      * @param int $num Number of items to return
230 230
      *
231
-     * @return mixed|CollectionInterface
231
+     * @return CollectionInterface
232 232
      */
233 233
     public function random($num);
234 234
 
Please login to merge, or discard this patch.
src/Collection/Sequence.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * You may optionally pass in a callback which will determine if each of the items within the collection are empty.
135 135
      * If all items in the collection are empty according to this callback, this method will return true.
136 136
      * @param callable $callback The callback
137
-     * @return bool
137
+     * @return boolean|null
138 138
      */
139 139
     public function isEmpty(callable $callback = null)
140 140
     {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * If callback is provided, this method will return true if all items in collection cause callback to return true.
158 158
      * Otherwise, it will return true if all items in the collection have a truthy value.
159 159
      * @param callable|null $callback The callback
160
-     * @return bool
160
+     * @return boolean|null
161 161
      */
162 162
     public function every(callable $callback = null)
163 163
     {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * Does every item return false?
169 169
      * This method is the exact opposite of "all".
170 170
      * @param callable|null $callback The callback
171
-     * @return bool
171
+     * @return boolean|null
172 172
      */
173 173
     public function none(callable $callback = null)
174 174
     {
Please login to merge, or discard this patch.
src/Collection/Collection.php 1 patch
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
             }
998 998
         });
999 999
         $args = $args->prepend($this->getData())
1000
-                     ->prepend(null);
1000
+                        ->prepend(null);
1001 1001
 
1002 1002
         return collect(
1003 1003
 //            array_map(
@@ -1185,11 +1185,9 @@  discard block
 block discarded – undo
1185 1185
 
1186 1186
     /**
1187 1187
      * Get the number of times each item occurs in the collection.
1188
-
1189 1188
      * This method will return a NumericCollection where keys are the
1190 1189
      * values and values are the number of times that value occurs in
1191 1190
      * the original collection.
1192
-
1193 1191
      * @return CollectionInterface
1194 1192
      */
1195 1193
     public function counts()
Please login to merge, or discard this patch.
src/functions.php 1 patch
Indentation   -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,8 @@  discard block
 block discarded – undo
52 52
 
53 53
 /**
54 54
  * Underscore function.
55
-
56 55
  * This function is meant to work sort of like jQuery's "$()". It is a contextual catch-all type function. It works
57 56
  * as a short-hand alias for invoke, collect, and with.
58
-
59 57
  * @param callable|mixed    $in
60 58
  * @param mixed ...         $_
61 59
  *
@@ -133,10 +131,8 @@  discard block
 block discarded – undo
133 131
  *
134 132
  * Accepts any kind of data and converts it to an array. If strict mode is on, only data that returns true from
135 133
  * is_arrayable() will be converted to an array. Anything else will cause an InvalidArgumentException to be thrown.
136
-
137 134
  * @param mixed $data   Data to convert to array
138 135
  * @param bool  $strict Whether to use strict mode
139
-
140 136
  * @return array
141 137
  *
142 138
  * @throws InvalidArgumentException
Please login to merge, or discard this patch.
src/Contracts/Comparable.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -110,10 +110,8 @@
 block discarded – undo
110 110
  *
111 111
  * Accepts any kind of data and converts it to an array. If strict mode is on, only data that returns true from
112 112
  * is_arrayable() will be converted to an array. Anything else will cause an InvalidArgumentException to be thrown.
113
-
114 113
  * @param mixed $data   Data to convert to array
115 114
  * @param bool  $strict Whether to use strict mode
116
-
117 115
  * @return array
118 116
  *
119 117
  * @throws InvalidArgumentException
Please login to merge, or discard this patch.