@@ -133,7 +133,7 @@ |
||
| 133 | 133 | ]; |
| 134 | 134 | |
| 135 | 135 | $key = 'plugins.videos.settings.oauthProviderOptions'; |
| 136 | - $configPath = $key . '.' . $gateway->getHandle(); |
|
| 136 | + $configPath = $key.'.'.$gateway->getHandle(); |
|
| 137 | 137 | |
| 138 | 138 | Craft::$app->getProjectConfig()->set($configPath, $configData, "Save the “{$gateway->getHandle()}” integration"); |
| 139 | 139 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | // Get OAuth provider options |
| 26 | 26 | $oauthProviderOptions = $projectConfig->get('plugins.videos.settings.oauthProviderOptions', true); |
| 27 | 27 | |
| 28 | - if(!is_array($oauthProviderOptions)) { |
|
| 28 | + if (!is_array($oauthProviderOptions)) { |
|
| 29 | 29 | return true; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $projectConfig->set('plugins.videos.settings.oauthProviderOptions', [], "Reset the oauth provider options"); |
| 36 | 36 | |
| 37 | 37 | // Rebuild OAuth provider options |
| 38 | - foreach($oauthProviderOptions as $providerHandle => $provider) { |
|
| 38 | + foreach ($oauthProviderOptions as $providerHandle => $provider) { |
|
| 39 | 39 | $projectConfig->set('plugins.videos.settings.oauthProviderOptions.'.$providerHandle, $provider, "Save the “{$providerHandle}” provider"); |
| 40 | 40 | } |
| 41 | 41 | } |