Passed
Push — releases/v0.3 ( 7e799c...c0b0dc )
by Luke
06:36
created
src/CSVelte/Sniffer/AbstractSniffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         if (is_null($eol)) {
65 65
             $eol = "\r\n|\r|\n";
66 66
         }
67
-        return preg_replace_callback('/([\'"])(.*)\1/imsU', function ($matches) use ($delim, $eol) {
67
+        return preg_replace_callback('/([\'"])(.*)\1/imsU', function($matches) use ($delim, $eol) {
68 68
             $ret = preg_replace("/({$eol})/", static::PLACEHOLDER_NEWLINE, $matches[0]);
69 69
             if (!is_null($delim)) {
70 70
                 $ret = str_replace($delim, static::PLACEHOLDER_DELIM, $ret);
Please login to merge, or discard this patch.
src/CSVelte/Sniffer/SniffHeaderByDataType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 return s($this->replaceQuotedSpecialChars($line, $delimiter));
41 41
             });
42 42
         $header = collect($lines->shift()->split($delimiter))
43
-            ->map(function($val){ return $this->unQuote($val); })
43
+            ->map(function($val) { return $this->unQuote($val); })
44 44
             ->map(function($val) {
45 45
                 return [
46 46
                     'type' => $this->getType($val),
Please login to merge, or discard this patch.
src/CSVelte/Reader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         $d = $this->getDialect();
143 143
         $fields = collect(s($line)
144 144
             ->trimRight($d->getLineTerminator())
145
-            ->split($d->getDelimiter() . "(?=([^\"]*\"[^\"]*\")*[^\"]*$)"));
145
+            ->split($d->getDelimiter()."(?=([^\"]*\"[^\"]*\")*[^\"]*$)"));
146 146
         if (!is_null($this->header)) {
147 147
             $fields = $fields->rekey($this->header);
148 148
         }
Please login to merge, or discard this patch.