@@ -329,7 +329,7 @@ |
||
| 329 | 329 | * @param string $str The string to unescape |
| 330 | 330 | * @param string $esc The escape character used |
| 331 | 331 | * @param string $quo The quote character used |
| 332 | - * @return mixed The string with characters unescaped |
|
| 332 | + * @return string The string with characters unescaped |
|
| 333 | 333 | * @todo This actually shouldn't even be necessary. Characters should be read |
| 334 | 334 | * in one at a time and a quote that follows another should just be ignored |
| 335 | 335 | * deeming this unnecessary. |
@@ -692,7 +692,7 @@ |
||
| 692 | 692 | * |
| 693 | 693 | * @param string $data The data to check |
| 694 | 694 | * |
| 695 | - * @return bool Whether the data is quoted or not |
|
| 695 | + * @return integer Whether the data is quoted or not |
|
| 696 | 696 | */ |
| 697 | 697 | protected function isQuoted($data) |
| 698 | 698 | { |
@@ -234,7 +234,9 @@ |
||
| 234 | 234 | // callback to build the aforementioned collection |
| 235 | 235 | $buildTypes = function ($line, $line_no) use ($types, $delim, $eol) { |
| 236 | 236 | |
| 237 | - if ($line_no > 2) return; |
|
| 237 | + if ($line_no > 2) { |
|
| 238 | + return; |
|
| 239 | + } |
|
| 238 | 240 | $line = str_replace(self::PLACEHOLDER_NEWLINE, $eol, $line); |
| 239 | 241 | $getType = function ($field, $colpos) use ($types, $line, $line_no, $delim) { |
| 240 | 242 | $field = str_replace(self::PLACEHOLDER_DELIM, $delim, $field); |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * also optionally throw an OutOfBoundsException if no value is found. |
| 283 | 283 | * |
| 284 | 284 | * @param mixed $index The index of the data you want to get |
| 285 | - * @param mixed $default The default value to return if none available |
|
| 285 | + * @param null|integer $default The default value to return if none available |
|
| 286 | 286 | * @param bool $throw True if you want an exception to be thrown if no data found at $index |
| 287 | 287 | * @throws OutOfBoundsException If $throw is true and $index isn't found |
| 288 | 288 | * @return mixed The data found at $index or failing that, the $default |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | * Returns a new collection with $items added. |
| 548 | 548 | * |
| 549 | 549 | * @param array $items Any number of arguments will be pushed onto the |
| 550 | - * @return mixed The first item in this collection |
|
| 550 | + * @return AbstractCollection The first item in this collection |
|
| 551 | 551 | */ |
| 552 | 552 | public function push(...$items) |
| 553 | 553 | { |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | * |
| 561 | 561 | * Returns a new collection with $items added. |
| 562 | 562 | * |
| 563 | - * @return mixed The first item in this collection |
|
| 563 | + * @return AbstractCollection The first item in this collection |
|
| 564 | 564 | */ |
| 565 | 565 | public function unshift(...$items) |
| 566 | 566 | { |
@@ -616,7 +616,7 @@ discard block |
||
| 616 | 616 | /** |
| 617 | 617 | * Iterate over each item that matches criteria in callback |
| 618 | 618 | * |
| 619 | - * @param Closure|callable $callback A callback to use |
|
| 619 | + * @param Closure $callback A callback to use |
|
| 620 | 620 | * @param object $bindTo The object to bind to |
| 621 | 621 | * @return AbstractCollection |
| 622 | 622 | */ |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | /** |
| 725 | 725 | * Returns collection in reverse order. |
| 726 | 726 | * |
| 727 | - * @param null $preserveKeys True if you want to preserve collection's keys |
|
| 727 | + * @param boolean $preserveKeys True if you want to preserve collection's keys |
|
| 728 | 728 | * @return AbstractCollection This collection in reverse order. |
| 729 | 729 | */ |
| 730 | 730 | public function reverse($preserveKeys = null) |