|
@@ -92,7 +92,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
} |
Please login to merge, or discard this patch.