Passed
Pull Request — master (#68)
by
unknown
46s
created
src/Code/Converters/CsvConverter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $internal_format = [];
33 33
         foreach ($data as $k => $row) {
34 34
             $timestamp = preg_replace(TxtConverter::$time_regexp, '', $row[0]);
35
-            if ($k === 0  && trim($timestamp) !== '') { // heading
35
+            if ($k === 0 && trim($timestamp) !== '') { // heading
36 36
                 continue;
37 37
             }
38 38
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         $separator = self::detectSeparator($content);
84 84
         $csv = [];
85
-        while ( ($data = fgetcsv($fp, 0, $separator) ) !== false ) {
85
+        while (($data = fgetcsv($fp, 0, $separator)) !== false) {
86 86
             $csv[] = $data;
87 87
         }
88 88
         fclose($fp);
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,10 @@
 block discarded – undo
97 97
         foreach ($lines as $line) {
98 98
             foreach (self::$allowedSeparators as $delimiter) {
99 99
                 $count = count(explode($delimiter, $line));
100
-                if ($count === 1) continue; // delimiter not found in line
100
+                if ($count === 1) {
101
+                    continue;
102
+                }
103
+                // delimiter not found in line
101 104
 
102 105
                 if (empty($results[$delimiter])) {
103 106
                     $results[$delimiter] = [];
Please login to merge, or discard this patch.