@@ -31,7 +31,8 @@ discard block |
||
31 | 31 | <?php endif; ?> |
32 | 32 | </p> |
33 | 33 | |
34 | - <?php else: ?> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
35 | 36 | |
36 | 37 | <p> |
37 | 38 | If you have business inquiries or other questions, please fill out the following form to contact us. |
@@ -41,7 +42,9 @@ discard block |
||
41 | 42 | <div class="row"> |
42 | 43 | <div class="col-lg-5"> |
43 | 44 | |
44 | - <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> |
|
45 | + <?php $form = ActiveForm::begin(['id' => 'contact-form']); |
|
46 | +} |
|
47 | +?> |
|
45 | 48 | |
46 | 49 | <?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?> |
47 | 50 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return Response|string |
73 | 73 | */ |
74 | - public function actionLogin(): Response|string |
|
74 | + public function actionLogin(): Response | string |
|
75 | 75 | { |
76 | 76 | if (!Yii::$app->user->isGuest) { |
77 | 77 | return $this->goHome(); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @return Response|string |
107 | 107 | */ |
108 | - public function actionContact(): Response|string |
|
108 | + public function actionContact(): Response | string |
|
109 | 109 | { |
110 | 110 | $model = new ContactForm(); |
111 | 111 | if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params['adminEmail'])) { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * {@inheritdoc} |
37 | 37 | */ |
38 | - public static function findIdentity($id): IdentityInterface|null |
|
38 | + public static function findIdentity($id): IdentityInterface | null |
|
39 | 39 | { |
40 | 40 | return isset(self::$users[$id]) ? new static(self::$users[$id]) : null; |
41 | 41 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * {@inheritdoc} |
45 | 45 | */ |
46 | - public static function findIdentityByAccessToken($token, $type = null): IdentityInterface|null |
|
46 | + public static function findIdentityByAccessToken($token, $type = null): IdentityInterface | null |
|
47 | 47 | { |
48 | 48 | foreach (self::$users as $user) { |
49 | 49 | if ($user['accessToken'] === $token) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return static|null the user object |
63 | 63 | */ |
64 | - public static function findByUsername($username): static|null |
|
64 | + public static function findByUsername($username): static | null |
|
65 | 65 | { |
66 | 66 | foreach (self::$users as $user) { |
67 | 67 | if (strcasecmp((string) $user['username'], $username) === 0) { |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public string $password = ''; |
20 | 20 | public bool $rememberMe = true; |
21 | 21 | |
22 | - private bool|null|User $user = false; |
|
22 | + private bool | null | User $user = false; |
|
23 | 23 | |
24 | 24 | |
25 | 25 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @return User|null the user identity |
75 | 75 | */ |
76 | - public function getUser(): User|null |
|
76 | + public function getUser(): User | null |
|
77 | 77 | { |
78 | 78 | if ($this->user === false) { |
79 | 79 | $this->user = User::findByUsername($this->username); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class LoginFormTest extends \Codeception\Test\Unit |
8 | 8 | { |
9 | - private \app\models\LoginForm|null $model = null; |
|
9 | + private \app\models\LoginForm | null $model = null; |
|
10 | 10 | |
11 | 11 | protected function _after() |
12 | 12 | { |
@@ -3,4 +3,4 @@ |
||
3 | 3 | defined('YII_DEBUG') or define('YII_DEBUG', true); |
4 | 4 | |
5 | 5 | require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; |
6 | -require __DIR__ .'/../vendor/autoload.php'; |
|
7 | 6 | \ No newline at end of file |
7 | +require __DIR__ . '/../vendor/autoload.php'; |
|
8 | 8 | \ No newline at end of file |