@@ -38,14 +38,14 @@ discard block |
||
| 38 | 38 | public function fileContentToInternalFormat($file_content) |
| 39 | 39 | { |
| 40 | 40 | $data = self::csvToArray(trim($file_content)); |
| 41 | - $data_string = ''; |
|
| 41 | + $data_string = ''; |
|
| 42 | 42 | |
| 43 | - $is_start_time = (bool) preg_match(TxtConverter::$time_regexp, $data[1][0]); |
|
| 44 | - $is_end_time = (bool) preg_match(TxtConverter::$time_regexp, $data[1][1]); |
|
| 43 | + $is_start_time = (bool)preg_match(TxtConverter::$time_regexp, $data[1][0]); |
|
| 44 | + $is_end_time = (bool)preg_match(TxtConverter::$time_regexp, $data[1][1]); |
|
| 45 | 45 | |
| 46 | 46 | foreach ($data as $k => $row) { |
| 47 | - $timestamp_found = (bool) preg_match(TxtConverter::$time_regexp, $row[0]); |
|
| 48 | - if ($k === 0 && $timestamp_found === false) { // heading |
|
| 47 | + $timestamp_found = (bool)preg_match(TxtConverter::$time_regexp, $row[0]); |
|
| 48 | + if ($k === 0 && $timestamp_found === false) { // heading |
|
| 49 | 49 | continue; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $separator = self::detectSeparator($content); |
| 102 | 102 | $csv = []; |
| 103 | - while ( ($data = fgetcsv($fp, 0, $separator) ) !== false ) { |
|
| 103 | + while (($data = fgetcsv($fp, 0, $separator)) !== false) { |
|
| 104 | 104 | $csv[] = $data; |
| 105 | 105 | } |
| 106 | 106 | fclose($fp); |