Passed
Push — master ( fc589b...866b4d )
by Mantas
50s
created
src/Code/Converters/TtmlConverter.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
         $internal_format = [];
216 216
 
217 217
         foreach ($xml->Paragraph as $paragraph) {
218
-             $subtitle = [
218
+                $subtitle = [
219 219
                 'start' => (int)$paragraph->StartMilliseconds / 1000,
220 220
                 'end' => (int)$paragraph->EndMilliseconds / 1000,
221 221
                 'lines' => self::getLinesFromTextWithBr($paragraph->Text->asXML()),
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $time_parts = explode('.', $ttml_time);
156 156
             $milliseconds = 0;
157 157
             if (isset($time_parts[1])) {
158
-                $milliseconds = (float) ('0.' . $time_parts[1]);
158
+                $milliseconds = (float)('0.' . $time_parts[1]);
159 159
             }
160 160
 
161 161
             list($hours, $minutes, $seconds) = array_map('intval', explode(':', $time_parts[0]));
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
 
183 183
     protected static function internalTimeToTtml($internal_time)
184 184
     {
185
-        $formatted_output =  round($internal_time, 3);
185
+        $formatted_output = round($internal_time, 3);
186 186
 
187 187
         if (strpos($formatted_output, '.') === false) {
188
-            $formatted_output .= ".0";  // Add at least one digit after decimal if there are no digits
188
+            $formatted_output .= ".0"; // Add at least one digit after decimal if there are no digits
189 189
         }
190 190
 
191 191
         return $formatted_output;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             list($numerator, $denominator) = array_map('intval', explode(' ', $frameRateMultiplier));
202 202
             return $frameRate / $denominator * $numerator;
203 203
         } else if ($frameRate) {
204
-            return (int) $frameRate;
204
+            return (int)$frameRate;
205 205
         }
206 206
 
207 207
         //This is a standard frame rate used in many video formats and broadcast television.
@@ -252,8 +252,8 @@  discard block
 block discarded – undo
252 252
         foreach ($xml->text as $text) {
253 253
             $attributes = $text->attributes();
254 254
             $internal_format[] = array(
255
-                'start' => (string) $attributes['start'],
256
-                'end' => (float)((string) $attributes['start'] + (string) $attributes['dur']),
255
+                'start' => (string)$attributes['start'],
256
+                'end' => (float)((string)$attributes['start'] + (string)$attributes['dur']),
257 257
                 'lines' => self::getLinesFromTextWithBr(str_replace("\n", "<br>", $text->asXML()))
258 258
             );
259 259
         }
Please login to merge, or discard this patch.