@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * @param string $key |
| 119 | 119 | * @param string $default |
| 120 | 120 | * |
| 121 | - * @return mixed |
|
| 121 | + * @return string |
|
| 122 | 122 | */ |
| 123 | 123 | protected function getConfigValue($key, $default) |
| 124 | 124 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function parseRow(array $columns) |
| 94 | 94 | { |
| 95 | - return collect($columns)->zip($this->config['schema'])->flatMap(function ($pair, $index) { |
|
| 95 | + return collect($columns)->zip($this->config['schema'])->flatMap(function($pair, $index) { |
|
| 96 | 96 | list($value, $type) = $pair; |
| 97 | 97 | |
| 98 | 98 | $parsed = $this->getValue($type, $value); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $reader->setEscape($this->getConfigValue('escape', $this->defaultEscape)); |
| 116 | 116 | $reader->setInputEncoding($this->getConfigValue('encoding', $this->defaultEncoding)); |
| 117 | 117 | |
| 118 | - return collect($reader)->map(function ($row) { |
|
| 118 | + return collect($reader)->map(function($row) { |
|
| 119 | 119 | return (object) $this->parseRow($row); |
| 120 | 120 | })->all(); |
| 121 | 121 | } |