Completed
Push — master ( 0fa25a...6a8ef0 )
by Kai
03:38 queued 01:03
created
src/Parser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.