Test Setup Failed
Pull Request — master (#52)
by Alexandre
56s
created
src/Converters/VttConverter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     protected static function fixLine(): Closure
87 87
     {
88
-        return function ($line) {
88
+        return function($line) {
89 89
             if (substr($line, 0, 3) === '<v ') {
90 90
                 $line = substr($line, 3);
91 91
                 $line = str_replace('>', ' ', $line);
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
             throw new InvalidTimeFormatException($subtitleFormat);
105 105
         }
106 106
 
107
-        return (int) $matches['hours'] * ConstantsInterface::HOURS_SECONDS
108
-            + (int) $matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
109
-            + (int) $matches['seconds']
110
-            + (float) $matches['fraction'] / 1000;
107
+        return (int)$matches['hours'] * ConstantsInterface::HOURS_SECONDS
108
+            + (int)$matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
109
+            + (int)$matches['seconds']
110
+            + (float)$matches['fraction'] / 1000;
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
src/Converters/SbvConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@
 block discarded – undo
71 71
             throw new InvalidTimeFormatException($subtitleFormat);
72 72
         }
73 73
 
74
-        return (int) $matches['hours'] * ConstantsInterface::HOURS_SECONDS
75
-            + (int) $matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
76
-            + (int) $matches['seconds']
77
-            + (float) $matches['fraction'] / 1000;
74
+        return (int)$matches['hours'] * ConstantsInterface::HOURS_SECONDS
75
+            + (int)$matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
76
+            + (int)$matches['seconds']
77
+            + (float)$matches['fraction'] / 1000;
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
src/Converters/SrtConverter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@
 block discarded – undo
73 73
 
74 74
         $abc = 123;
75 75
 
76
-        return (int) $matches['hours'] * ConstantsInterface::HOURS_SECONDS
77
-            + (int) $matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
78
-            + (int) $matches['seconds']
79
-            + (float) $matches['fraction'] / 1000;
76
+        return (int)$matches['hours'] * ConstantsInterface::HOURS_SECONDS
77
+            + (int)$matches['minutes'] * ConstantsInterface::MINUTES_SECONDS
78
+            + (int)$matches['seconds']
79
+            + (float)$matches['fraction'] / 1000;
80 80
     }
81 81
 
82 82
     public function toSubtitleTimeFormat(float $internalFormat): string
Please login to merge, or discard this patch.
src/Subtitles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     /** private */
104 104
     protected function sortInternalFormat(): void
105 105
     {
106
-        usort($this->internalFormat, function ($item1, $item2) {
106
+        usort($this->internalFormat, function($item1, $item2) {
107 107
             if ($item2['start'] === $item1['start']) {
108 108
                 return 0;
109 109
             } elseif ($item2['start'] < $item1['start']) {
Please login to merge, or discard this patch.