Passed
Push — master ( 43fc7a...4c27d4 )
by Mantas
57s
created
src/Code/Converters/CsvConverter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
     public function fileContentToInternalFormat($file_content)
41 41
     {
42 42
         $data = self::csvToArray(trim($file_content));
43
-        $data_string  = '';
43
+        $data_string = '';
44 44
 
45
-        $is_start_time = (bool) preg_match(TxtConverter::$time_regexp, $data[1][0]);
46
-        $is_end_time = (bool) preg_match(TxtConverter::$time_regexp, $data[1][1]);
45
+        $is_start_time = (bool)preg_match(TxtConverter::$time_regexp, $data[1][0]);
46
+        $is_end_time = (bool)preg_match(TxtConverter::$time_regexp, $data[1][1]);
47 47
         if ($is_end_time && !isset($data[1][2])) {
48 48
             throw new UserException('No text (TxtConverter)');
49 49
         }
50 50
 
51 51
         foreach ($data as $k => $row) {
52
-            $timestamp_found = (bool) preg_match(TxtConverter::$time_regexp, $row[0]);
53
-            if ($k === 0  && $timestamp_found === false) { // heading
52
+            $timestamp_found = (bool)preg_match(TxtConverter::$time_regexp, $row[0]);
53
+            if ($k === 0 && $timestamp_found === false) { // heading
54 54
                 continue;
55 55
             }
56 56
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         $separator = self::detectSeparator($content);
107 107
         $csv = [];
108
-        while ( ($data = fgetcsv($fp, 0, $separator) ) !== false ) {
108
+        while (($data = fgetcsv($fp, 0, $separator)) !== false) {
109 109
             $csv[] = $data;
110 110
         }
111 111
         fclose($fp);
Please login to merge, or discard this patch.