@@ -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 | { |