Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function safeUp() |
||
19 | { |
||
20 | $settings = Plugin::$plugin->getSettings(); |
||
21 | |||
22 | |||
23 | // Reset the OAuth scope to its default configuration |
||
24 | $settingsModel = new Settings(); |
||
25 | $settings->oauthScope = $settingsModel->oauthScope; |
||
26 | |||
27 | $plugin = Craft::$app->getPlugins()->getPlugin('facebook'); |
||
28 | Craft::$app->getPlugins()->savePluginSettings($plugin, $settings->toArray()); |
||
29 | } |
||
40 |