Passed
Pull Request — master (#75)
by
unknown
46s
created
src/Code/Converters/CsvConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     public function fileContentToInternalFormat($file_content)
29 29
     {
30 30
         $data = self::csvToArray($file_content);
31
-        $data_string  = '';
31
+        $data_string = '';
32 32
         $splitter = "/\nnewline\n/";
33 33
         foreach ($data as $k => $row) {
34
-            $timestamp_found = (bool) preg_match(TxtConverter::$time_regexp, $row[0]);
35
-            if ($k === 0  && $timestamp_found === false) { // heading
34
+            $timestamp_found = (bool)preg_match(TxtConverter::$time_regexp, $row[0]);
35
+            if ($k === 0 && $timestamp_found === false) { // heading
36 36
                 continue;
37 37
             }
38 38
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         $separator = self::detectSeparator($content);
81 81
         $csv = [];
82
-        while ( ($data = fgetcsv($fp, 0, $separator) ) !== false ) {
82
+        while (($data = fgetcsv($fp, 0, $separator)) !== false) {
83 83
             $csv[] = $data;
84 84
         }
85 85
         fclose($fp);
Please login to merge, or discard this patch.