@@ -85,7 +85,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -71,10 +71,10 @@ |
||
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 | /** |
@@ -73,10 +73,10 @@ |
||
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 |
@@ -103,7 +103,7 @@ |
||
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']) { |