GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#29)
by Alexey
11:02 queued 09:16
created
YaLinqo/EnumerablePagination.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      * <p>If source contains fewer than count elements, an empty sequence is returned. If count is less than or equal to zero, all elements of source are yielded.
386 386
      * <p>The {@link take} and skip methods are functional complements. Given a sequence coll and an integer n, concatenating the results of coll->take(n) and coll->skip(n) yields the same sequence as coll.
387 387
      * @param int $count The number of elements to skip before returning the remaining elements.
388
-     * @return Enumerable A sequence that contains the elements that occur after the specified index in the input sequence.
388
+     * @return EnumerablePagination A sequence that contains the elements that occur after the specified index in the input sequence.
389 389
      * @package YaLinqo\Pagination
390 390
      */
391 391
     public function skip ($count)
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      * <p>This method tests each element of source by using predicate and skips the element if the result is true. After the predicate function returns false for an element, that element and the remaining elements in source are yielded and there are no more invocations of predicate. If predicate returns true for all elements in the sequence, an empty sequence is returned.
409 409
      * <p>The {@link takeWhile} and skipWhile methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll->takeWhile(p) and coll->skipWhile(p) yields the same sequence as coll.
410 410
      * @param callable $predicate {(v, k) ==> result} A function to test each element for a condition.
411
-     * @return Enumerable A sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.
411
+     * @return EnumerablePagination A sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.
412 412
      * @package YaLinqo\Pagination
413 413
      */
414 414
     public function skipWhile ($predicate)
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      * <p>Take enumerates source and yields elements until count elements have been yielded or source contains no more elements. If count is less than or equal to zero, source is not enumerated and an empty sequence is returned.
433 433
      * <p>The take and {@link skip} methods are functional complements. Given a sequence coll and an integer n, concatenating the results of coll->take(n) and coll->skip(n) yields the same sequence as coll.
434 434
      * @param int $count The number of elements to return.
435
-     * @return Enumerable A sequence that contains the specified number of elements from the start of the input sequence.
435
+     * @return EnumerablePagination A sequence that contains the specified number of elements from the start of the input sequence.
436 436
      * @package YaLinqo\Pagination
437 437
      */
438 438
     public function take ($count)
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      * <p>The takeWhile method tests each element of source by using predicate and yields the element if the result is true. Enumeration stops when the predicate function returns false for an element or when source contains no more elements.
458 458
      * <p>The takeWhile and {@link skipWhile} methods are functional complements. Given a sequence coll and a pure function p, concatenating the results of coll->takeWhile(p) and coll->skipWhile(p) yields the same sequence as coll.
459 459
      * @param callable $predicate {(v, k) ==> result} A function to test each element for a condition.
460
-     * @return Enumerable A sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes.
460
+     * @return EnumerablePagination A sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes.
461 461
      * @package YaLinqo\Pagination
462 462
      */
463 463
     public function takeWhile ($predicate)
Please login to merge, or discard this patch.
YaLinqo/Functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
     /**
144 144
      * Increment function: returns incremental integers starting from 0.
145
-     * @return callable
145
+     * @return \Closure
146 146
      */
147 147
     public static function increment ()
148 148
     {
Please login to merge, or discard this patch.
YaLinqo/OrderedEnumerable.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * <p>Three methods are defined to extend the type OrderedEnumerable, which is the return type of this method. These three methods, namely {@link thenBy}, {@link thenByDescending} and {@link thenByDir}, enable you to specify additional sort criteria to sort a sequence. These methods also return an OrderedEnumerable, which means any number of consecutive calls to thenBy, thenByDescending or thenByDir can be made.
68 68
      * <p>Because OrderedEnumerable inherits from {@link Enumerable}, you can call {@link Enumerable::orderBy orderBy}, {@link Enumerable::orderByDescending orderByDescending} or {@link Enumerable::orderByDir orderByDir} on the results of a call to orderBy, orderByDescending, orderByDir, thenBy, thenByDescending or thenByDir. Doing this introduces a new primary ordering that ignores the previously established ordering.
69 69
      * <p>This method performs an unstable sort; that is, if the keys of two elements are equal, the order of the elements is not preserved. In contrast, a stable sort preserves the order of elements that have the same key. Internally, {@link usort} is used.
70
-     * @param int|bool $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
70
+     * @param boolean $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
71 71
      * @param callable|null $keySelector {(v, k) ==> key} A function to extract a key from an element. Default: value.
72 72
      * @param callable|int|null $comparer {(a, b) ==> diff} Difference between a and b: &lt;0 if a&lt;b; 0 if a==b; &gt;0 if a&gt;b. Can also be a combination of SORT_ flags.
73 73
      * @return \YaLinqo\OrderedEnumerable
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
         return $this->sortByMultipleFields($array, $canMultisort);
125 125
     }
126 126
 
127
+    /**
128
+     * @param boolean $canMultisort
129
+     */
127 130
     private function trySortBySingleField ($array, $canMultisort)
128 131
     {
129 132
         if ($this->parent !== null || $array === null) {
@@ -151,6 +154,9 @@  discard block
 block discarded – undo
151 154
         return new \ArrayIterator($array);
152 155
     }
153 156
 
157
+    /**
158
+     * @param boolean $canMultisort
159
+     */
154 160
     private function sortByMultipleFields ($array, $canMultisort)
155 161
     {
156 162
         $orders = [ ];
Please login to merge, or discard this patch.
YaLinqo/EnumerableGeneration.php 1 patch
Doc Comments   +15 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      * @param array|\Iterator|\IteratorAggregate|Enumerable $source Source sequence.
14 14
      * @throws \InvalidArgumentException If source is not array or Traversible or Enumerable.
15 15
      * @throws \UnexpectedValueException If source contains no elements (checked during enumeration).
16
-     * @return Enumerable Endless list of items repeating the source sequence.
16
+     * @return EnumerableGeneration Endless list of items repeating the source sequence.
17 17
      * @package YaLinqo\Generation
18 18
      */
19 19
     public static function cycle ($source)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Returns an empty sequence.
38 38
      * <p><b>Syntax</b>: emptyEnum ()
39
-     * @return Enumerable
39
+     * @return EnumerableGeneration
40 40
      * @package YaLinqo\Generation
41 41
      */
42 42
     public static function emptyEnum ()
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         throw new \InvalidArgumentException('source must be array or Traversable.');
80 80
     }
81 81
 
82
+    /**
83
+     * @param \Traversable $source
84
+     */
82 85
     private static function fromTraversable ($source)
83 86
     {
84 87
         foreach ($source as $k => $v)
@@ -93,7 +96,7 @@  discard block
 block discarded – undo
93 96
      * @param mixed $seedValue Initial state of the generator loop for values. Default: null.
94 97
      * @param callable|null $funcKey {(v, k) ==> key} State update function to run on key after every iteration of the generator loop. Default: increment.
95 98
      * @param mixed $seedKey Initial state of the generator loop ofr keys. Default: 0.
96
-     * @return Enumerable
99
+     * @return EnumerableGeneration
97 100
      * @package YaLinqo\Generation
98 101
      */
99 102
     public static function generate ($funcValue, $seedValue = null, $funcKey = null, $seedKey = null)
@@ -120,7 +123,7 @@  discard block
 block discarded – undo
120 123
      * <p><b>Syntax</b>: toInfinity ([start [, step]])
121 124
      * @param int $start The first integer in the sequence. Default: 0.
122 125
      * @param int $step The difference between adjacent integers. Default: 1.
123
-     * @return Enumerable
126
+     * @return EnumerableGeneration
124 127
      * @package YaLinqo\Generation
125 128
      */
126 129
     public static function toInfinity ($start = 0, $step = 1)
@@ -138,7 +141,7 @@  discard block
 block discarded – undo
138 141
      * @param string $subject The input string.
139 142
      * @param string $pattern The pattern to search for, as a string.
140 143
      * @param int $flags Can be a combination of the following flags: PREG_PATTERN_ORDER, PREG_SET_ORDER, PREG_OFFSET_CAPTURE. Default: PREG_SET_ORDER.
141
-     * @return Enumerable
144
+     * @return EnumerableGeneration
142 145
      * @see preg_match_all
143 146
      * @package YaLinqo\Generation
144 147
      */
@@ -155,7 +158,7 @@  discard block
 block discarded – undo
155 158
      * <p><b>Syntax</b>: toNegativeInfinity ([start [, step]])
156 159
      * @param int $start The first integer in the sequence. Default: 0.
157 160
      * @param int $step The difference between adjacent integers. Default: 1.
158
-     * @return Enumerable
161
+     * @return EnumerableGeneration
159 162
      * @package YaLinqo\Generation
160 163
      */
161 164
     public static function toNegativeInfinity ($start = 0, $step = 1)
@@ -167,7 +170,7 @@  discard block
 block discarded – undo
167 170
      * Returns a sequence that contains a single element with a specified value.
168 171
      * <p><b>Syntax</b>: returnEnum (element)
169 172
      * @param mixed $element The single element in the resulting sequence.
170
-     * @return Enumerable Observable sequence containing the single specified element.
173
+     * @return EnumerableGeneration Observable sequence containing the single specified element.
171 174
      * @package YaLinqo\Generation
172 175
      */
173 176
     public static function returnEnum ($element)
@@ -183,7 +186,7 @@  discard block
 block discarded – undo
183 186
      * @param int $start The value of the first integer in the sequence.
184 187
      * @param int $count The number of integers to generate.
185 188
      * @param int $step The difference between adjacent integers. Default: 1.
186
-     * @return Enumerable A sequence that contains a range of integral numbers.
189
+     * @return EnumerableGeneration A sequence that contains a range of integral numbers.
187 190
      * @package YaLinqo\Generation
188 191
      */
189 192
     public static function range ($start, $count, $step = 1)
@@ -205,7 +208,7 @@  discard block
 block discarded – undo
205 208
      * @param int $start The value of the first integer in the sequence.
206 209
      * @param int $count The number of integers to generate.
207 210
      * @param int $step The difference between adjacent integers. Default: 1.
208
-     * @return Enumerable A sequence that contains a range of integral numbers.
211
+     * @return EnumerableGeneration A sequence that contains a range of integral numbers.
209 212
      * @package YaLinqo\Generation
210 213
      */
211 214
     public static function rangeDown ($start, $count, $step = 1)
@@ -222,7 +225,7 @@  discard block
 block discarded – undo
222 225
      * @param int $end The value of the last integer in the sequence (not included).
223 226
      * @param int $step The difference between adjacent integers. Default: 1.
224 227
      * @throws \InvalidArgumentException If step is not a positive number.
225
-     * @return Enumerable A sequence that contains a range of integral numbers.
228
+     * @return EnumerableGeneration A sequence that contains a range of integral numbers.
226 229
      * @package YaLinqo\Generation
227 230
      */
228 231
     public static function rangeTo ($start, $end, $step = 1)
@@ -251,7 +254,7 @@  discard block
 block discarded – undo
251 254
      * @param int $element The value to be repeated.
252 255
      * @param int $count The number of times to repeat the value in the generated sequence. Default: null.
253 256
      * @throws \InvalidArgumentException If count is less than 0.
254
-     * @return Enumerable A sequence that contains a repeated value.
257
+     * @return EnumerableGeneration A sequence that contains a repeated value.
255 258
      * @package YaLinqo\Generation
256 259
      */
257 260
     public static function repeat ($element, $count = null)
@@ -270,7 +273,7 @@  discard block
 block discarded – undo
270 273
      * @param string $subject The input string.
271 274
      * @param string $pattern The pattern to search for, as a string.
272 275
      * @param int $flags flags can be any combination of the following flags: PREG_SPLIT_NO_EMPTY, PREG_SPLIT_DELIM_CAPTURE, PREG_SPLIT_OFFSET_CAPTURE. Default: 0.
273
-     * @return Enumerable
276
+     * @return EnumerableGeneration
274 277
      * @see preg_split
275 278
      * @package YaLinqo\Generation
276 279
      */
Please login to merge, or discard this patch.
YaLinqo/Enumerable.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @internal
37
-     * @param \Closure|\Iterator $iterator
37
+     * @param \Closure $iterator
38 38
      * @param bool $isClosure
39 39
      */
40 40
     private function __construct ($iterator, $isClosure = true)
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      * <p>Three methods are defined to extend the type {@link OrderedEnumerable}, which is the return type of this method. These three methods, namely {@link OrderedEnumerable::thenBy thenBy}, {@link OrderedEnumerable::thenByDescending thenByDescending} and {@link OrderedEnumerable::thenByDir thenByDir}, enable you to specify additional sort criteria to sort a sequence. These methods also return an OrderedEnumerable, which means any number of consecutive calls to thenBy, thenByDescending or thenByDir can be made.
213 213
      * <p>Because OrderedEnumerable inherits from Enumerable, you can call {@link orderBy}, {@link orderByDescending} or {@link orderByDir} on the results of a call to orderBy, orderByDescending, orderByDir, thenBy, thenByDescending or thenByDir. Doing this introduces a new primary ordering that ignores the previously established ordering.
214 214
      * <p>This method performs an unstable sort; that is, if the keys of two elements are equal, the order of the elements is not preserved. In contrast, a stable sort preserves the order of elements that have the same key. Internally, {@link usort} is used.
215
-     * @param int|bool $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
215
+     * @param boolean $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
216 216
      * @param callable|null $keySelector {(v, k) ==> key} A function to extract a key from an element. Default: value.
217 217
      * @param callable|int|null $comparer {(a, b) ==> diff} Difference between a and b: &lt;0 if a&lt;b; 0 if a==b; &gt;0 if a&gt;b. Can also be a combination of SORT_ flags.
218 218
      * @return OrderedEnumerable
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
 
851 851
     /**
852 852
      * Proc for {@link toArrayDeep}.
853
-     * @param $enum \Traversable Source sequence.
853
+     * @param Enumerable $enum \Traversable Source sequence.
854 854
      * @return array An array that contains the elements from the input sequence.
855 855
      * @package YaLinqo\Conversion
856 856
      */
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
 
901 901
     /**
902 902
      * Proc for {@link toListDeep}.
903
-     * @param $enum \Traversable Source sequence.
903
+     * @param Enumerable $enum \Traversable Source sequence.
904 904
      * @return array An array that contains the elements from the input sequence.
905 905
      * @package YaLinqo\Conversion
906 906
      */
Please login to merge, or discard this patch.