@@ -435,11 +435,11 @@ |
||
| 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); |
@@ -128,7 +128,7 @@ |
||
| 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, |
@@ -28,7 +28,7 @@ |
||
| 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 | |
@@ -100,7 +100,7 @@ |
||
| 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 | |
@@ -504,7 +504,7 @@ |
||
| 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 | |
@@ -45,7 +45,7 @@ |
||
| 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}}', [ |