Passed
Pull Request — master (#305)
by Wilmer
03:39
created
controllers/SiteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
models/LoginForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Unit/models/LoginFormTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 final class LoginFormTest extends \Codeception\Test\Unit
10 10
 {
11
-    private LoginForm|null $model = null;
11
+    private LoginForm | null $model = null;
12 12
 
13 13
     protected function _after(): void
14 14
     {
Please login to merge, or discard this patch.