Passed
Push — Auth ( e4eb07...81a6a2 )
by Stone
01:59
created
App/Controllers/Login.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     private function populateUserFromId(int $userId)
62 62
     {
63 63
         $result = $this->userModel->getUserDetailsById($userId);
64
-        $this->populateUser((array)$result);
64
+        $this->populateUser((array) $result);
65 65
     }
66 66
 
67 67
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function index()
84 84
     {
85
-        if($this->session->isParamSet("user"))
85
+        if ($this->session->isParamSet("user"))
86 86
         {
87 87
             //we are already connected, redirect
88 88
             $this->response->redirect();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function register()
113 113
     {
114
-        if($this->session->isParamSet("user"))
114
+        if ($this->session->isParamSet("user"))
115 115
         {
116 116
             //we are already connected, redirect
117 117
             $this->response->redirect();
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
             }
171 171
 
172 172
             $authUser = $this->userModel->authenticateUser($email, $password);
173
-            if(!$authUser->success)
173
+            if (!$authUser->success)
174 174
             {
175 175
                 $error = true;
176 176
                 $loginErrors->global = $authUser->message;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         //we are authenticated here
190 190
 
191 191
         //populate the user object with returned data
192
-        $this->populateUser((array)$authUser->user);
192
+        $this->populateUser((array) $authUser->user);
193 193
         $this->setUserSession();
194 194
 
195 195
         //if all is valid, redirect to user admin page
Please login to merge, or discard this patch.