@@ -269,7 +269,7 @@ |
||
| 269 | 269 | { |
| 270 | 270 | $tweetId = (int)$tweetId; |
| 271 | 271 | |
| 272 | - if(!$query) { |
|
| 272 | + if (!$query) { |
|
| 273 | 273 | $query = []; |
| 274 | 274 | } |
| 275 | 275 | |
@@ -120,17 +120,17 @@ |
||
| 120 | 120 | $settings = parent::getSettings(); |
| 121 | 121 | $configFile = Craft::$app->getConfig()->getConfigFromFile('twitter'); |
| 122 | 122 | |
| 123 | - if($settings) { |
|
| 123 | + if ($settings) { |
|
| 124 | 124 | $defaultSettingsModel = new Settings(); |
| 125 | 125 | |
| 126 | - if(!isset($configFile['cacheDuration'])) { |
|
| 126 | + if (!isset($configFile['cacheDuration'])) { |
|
| 127 | 127 | $settings->cacheDuration = $defaultSettingsModel->cacheDuration; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - if(!isset($configFile['enableCache'])) { |
|
| 130 | + if (!isset($configFile['enableCache'])) { |
|
| 131 | 131 | $settings->enableCache = $defaultSettingsModel->enableCache; |
| 132 | 132 | } |
| 133 | - if(!isset($configFile['searchWidgetExtraQuery'])) { |
|
| 133 | + if (!isset($configFile['searchWidgetExtraQuery'])) { |
|
| 134 | 134 | $settings->searchWidgetExtraQuery = $defaultSettingsModel->searchWidgetExtraQuery; |
| 135 | 135 | } |
| 136 | 136 | } |