@@ -28,11 +28,11 @@ discard block |
||
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 |
||
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); |