Passed
Push — master ( 309a1f...52718a )
by Benjamin
17:54 queued 10:12
created
src/helpers/VideosHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/base/Gateway.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.