@@ -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. |
@@ -14,11 +14,9 @@ |
||
14 | 14 | namespace CSVelte; |
15 | 15 | |
16 | 16 | use CSVelte\Contract\Streamable; |
17 | - |
|
18 | 17 | use CSVelte\Table\Row; |
19 | 18 | use CSVelte\Table\HeaderRow; |
20 | 19 | use CSVelte\Reader\FilteredIterator as FilteredReader; |
21 | - |
|
22 | 20 | use CSVelte\Exception\EndOfFileException; |
23 | 21 | |
24 | 22 | use function |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * Returns a new collection with $items added. |
441 | 441 | * |
442 | 442 | * @param array $items Any number of arguments will be pushed onto the |
443 | - * @return mixed The first item in this collection |
|
443 | + * @return Collection The first item in this collection |
|
444 | 444 | */ |
445 | 445 | public function push(...$items) |
446 | 446 | { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * |
454 | 454 | * Returns a new collection with $items added. |
455 | 455 | * |
456 | - * @return mixed The first item in this collection |
|
456 | + * @return Collection The first item in this collection |
|
457 | 457 | */ |
458 | 458 | public function unshift(...$items) |
459 | 459 | { |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | /** |
593 | 593 | * Returns collection in reverse order. |
594 | 594 | * |
595 | - * @param null $preserveKeys True if you want to preserve collection's keys |
|
595 | + * @param boolean $preserveKeys True if you want to preserve collection's keys |
|
596 | 596 | * @return Collection This collection in reverse order. |
597 | 597 | */ |
598 | 598 | public function reverse($preserveKeys = null) |
@@ -25,9 +25,7 @@ |
||
25 | 25 | use CSVelte\IO\IteratorStream; |
26 | 26 | use CSVelte\IO\Stream; |
27 | 27 | use CSVelte\IO\StreamResource; |
28 | -use CSVelte\Collection\AbstractCollection; |
|
29 | 28 | use InvalidArgumentException; |
30 | - |
|
31 | 29 | use Iterator; |
32 | 30 | |
33 | 31 | /** |
@@ -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 | { |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use CSVelte\Contract\Readable; |
20 | 20 | use CSVelte\Contract\Writable; |
21 | 21 | use CSVelte\Contract\Seekable; |
22 | - |
|
23 | 22 | use CSVelte\Exception\NotYetImplementedException; |
24 | 23 | |
25 | 24 | /** |