@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public static function getDuration($seconds): string |
| 30 | 30 | { |
| 31 | - $hours = (int)((int)$seconds / 3600); |
|
| 31 | + $hours = (int) ((int) $seconds / 3600); |
|
| 32 | 32 | $minutes = (($seconds / 60) % 60); |
| 33 | 33 | $seconds %= 60; |
| 34 | 34 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public static function getDuration8601($seconds): string |
| 56 | 56 | { |
| 57 | - $hours = (int)((int)$seconds / 3600); |
|
| 57 | + $hours = (int) ((int) $seconds / 3600); |
|
| 58 | 58 | $minutes = (($seconds / 60) % 60); |
| 59 | 59 | $seconds %= 60; |
| 60 | 60 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | public function getEmbedHtml($videoId, array $options = []): string |
| 233 | 233 | { |
| 234 | 234 | $embedAttributes = [ |
| 235 | - 'title' => 'External video from ' . $this->getHandle(), |
|
| 235 | + 'title' => 'External video from '.$this->getHandle(), |
|
| 236 | 236 | 'frameborder' => '0', |
| 237 | 237 | 'allowfullscreen' => 'true', |
| 238 | 238 | 'allowscriptaccess' => 'true', |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | $title = $options['title'] ?? false; |
| 250 | 250 | |
| 251 | - if($title) { |
|
| 251 | + if ($title) { |
|
| 252 | 252 | $this->parseEmbedAttribute($embedAttributes, $options, 'title', 'title'); |
| 253 | 253 | } |
| 254 | 254 | |
@@ -421,11 +421,11 @@ discard block |
||
| 421 | 421 | |
| 422 | 422 | try { |
| 423 | 423 | $response = $client->request('GET', $uri, $options); |
| 424 | - $body = (string)$response->getBody(); |
|
| 424 | + $body = (string) $response->getBody(); |
|
| 425 | 425 | $data = Json::decode($body); |
| 426 | 426 | } catch (BadResponseException $badResponseException) { |
| 427 | 427 | $response = $badResponseException->getResponse(); |
| 428 | - $body = (string)$response->getBody(); |
|
| 428 | + $body = (string) $response->getBody(); |
|
| 429 | 429 | |
| 430 | 430 | try { |
| 431 | 431 | $data = Json::decode($body); |