@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -97,7 +97,10 @@ |
||
| 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] = []; |