Passed
Push — develop ( 960f47...8ac85b )
by Benjamin
03:18
created
src/base/Gateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -435,11 +435,11 @@
 block discarded – undo
435 435
 
436 436
         try {
437 437
             $response = $client->request('GET', $uri, $options);
438
-            $body = (string)$response->getBody();
438
+            $body = (string) $response->getBody();
439 439
             $data = Json::decode($body);
440 440
         } catch (BadResponseException $badResponseException) {
441 441
             $response = $badResponseException->getResponse();
442
-            $body = (string)$response->getBody();
442
+            $body = (string) $response->getBody();
443 443
 
444 444
             try {
445 445
                 $data = Json::decode($body);
Please login to merge, or discard this patch.
src/controllers/SettingsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 
129 129
         $plugin = Craft::$app->getPlugins()->getPlugin('videos');
130 130
 
131
-        $settings = (array)$plugin->getSettings();
131
+        $settings = (array) $plugin->getSettings();
132 132
 
133 133
         $settings['oauthProviderOptions'][$gateway->getHandle()] = [
134 134
             'clientId' => $clientId,
Please login to merge, or discard this patch.
src/helpers/VideosHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 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
 
Please login to merge, or discard this patch.
src/gateways/YouTube.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     {
101 101
         $options = parent::getOauthProviderOptions();
102 102
 
103
-        if(!isset($options['useOidcMode'])) {
103
+        if (!isset($options['useOidcMode'])) {
104 104
             $options['useOidcMode'] = true;
105 105
         }
106 106
 
Please login to merge, or discard this patch.
src/gateways/Vimeo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -504,7 +504,7 @@
 block discarded – undo
504 504
     {
505 505
         $privacyOptions = ['nobody', 'contacts', 'password', 'users', 'disable'];
506 506
 
507
-        if(in_array($data['privacy']['view'], $privacyOptions, true)) {
507
+        if (in_array($data['privacy']['view'], $privacyOptions, true)) {
508 508
             $video->private = true;
509 509
         }
510 510
 
Please login to merge, or discard this patch.
src/migrations/m190601_092217_tokens.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $config = $info->config ? unserialize($info->config, ['allowed_classes' => false]) : [];
46 46
         $tokens = !empty($config['plugins']['videos']['settings']['tokens']) ? $config['plugins']['videos']['settings']['tokens'] : [];
47 47
 
48
-        foreach($tokens as $gatewayHandle => $token) {
48
+        foreach ($tokens as $gatewayHandle => $token) {
49 49
             // Populate videos_tokens with tokens
50 50
             Craft::$app->getDb()->createCommand()
51 51
                 ->insert('{{%videos_tokens}}', [
Please login to merge, or discard this patch.