@@ -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 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | use _generated\AcceptanceTesterActions; |
21 | 21 | |
22 | - /** |
|
23 | - * Define custom actions here |
|
24 | - */ |
|
22 | + /** |
|
23 | + * Define custom actions here |
|
24 | + */ |
|
25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | use _generated\UnitTesterActions; |
21 | 21 | |
22 | - /** |
|
23 | - * Define custom actions here |
|
24 | - */ |
|
22 | + /** |
|
23 | + * Define custom actions here |
|
24 | + */ |
|
25 | 25 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | use _generated\FunctionalTesterActions; |
23 | 23 | |
24 | - /** |
|
25 | - * Define custom actions here |
|
26 | - */ |
|
24 | + /** |
|
25 | + * Define custom actions here |
|
26 | + */ |
|
27 | 27 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $url = Yii::$app->getModule('discordapp')->getServerUrl() . '/widget?id='; |
22 | 22 | |
23 | - if (!$url) { |
|
23 | + if ( ! $url ) { |
|
24 | 24 | return ''; |
25 | 25 | } |
26 | 26 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public static function onAdminMenuInit($event) |
18 | 18 | { |
19 | - if (!Yii::$app->user->can(ManageModules::class)) { |
|
19 | + if ( ! Yii::$app->user->can(ManageModules::class) ) { |
|
20 | 20 | return; |
21 | 21 | } |
22 | 22 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public static function addDiscordappFrame($event) |
39 | 39 | { |
40 | - if (Yii::$app->user->isGuest) { |
|
40 | + if ( Yii::$app->user->isGuest ) { |
|
41 | 41 | return; |
42 | 42 | } |
43 | 43 |
@@ -22,7 +22,7 @@ discard block |
||
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' || 'https://discord.com'; |
27 | 27 | } |
28 | 28 | return $url; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function getOrder() |
32 | 32 | { |
33 | 33 | $sortOrder = $this->settings->get('sortOrder'); |
34 | - if (empty($sortOrder)) { |
|
34 | + if ( empty($sortOrder) ) { |
|
35 | 35 | return '100'; |
36 | 36 | } |
37 | 37 | return $sortOrder; |