@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $model = new ConfigureForm(); |
| 15 | 15 | $model->loadSettings(); |
| 16 | 16 | |
| 17 | - if ($model->load(Yii::$app->request->post()) && $model->save()) { |
|
| 17 | + if ( $model->load(Yii::$app->request->post()) && $model->save() ) { |
|
| 18 | 18 | $this->view->saved(); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function getServerUrl() |
| 23 | 23 | { |
| 24 | 24 | $url = $this->settings->get('serverUrl'); |
| 25 | - if (empty($url)) { |
|
| 25 | + if ( empty($url) ) { |
|
| 26 | 26 | return 'https://discordapp.com'; |
| 27 | 27 | } |
| 28 | 28 | return $url; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public static function addDiscordappFrame($event) |
| 27 | 27 | { |
| 28 | - if (Yii::$app->user->isGuest) { |
|
| 28 | + if ( Yii::$app->user->isGuest ) { |
|
| 29 | 29 | return; |
| 30 | 30 | } |
| 31 | 31 | $event->sender->view->registerAssetBundle(Assets::class); |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | codecept_debug('Module root: ' . $testRoot); |
| 11 | 11 | |
| 12 | 12 | $humhubPath = getenv('HUMHUB_PATH'); |
| 13 | -if ($humhubPath === false) { |
|
| 13 | +if ( $humhubPath === false ) { |
|
| 14 | 14 | // If no environment path was set, we assume residing in default the modules directory |
| 15 | 15 | $moduleConfig = require $testRoot . '/config/test.php'; |
| 16 | - if (isset($moduleConfig['humhub_root'])) { |
|
| 16 | + if ( isset($moduleConfig['humhub_root']) ) { |
|
| 17 | 17 | $humhubPath = $moduleConfig['humhub_root']; |
| 18 | 18 | } else { |
| 19 | 19 | $humhubPath = dirname(__DIR__, 5); |