@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | // Create the Transport for mail sending |
40 | 40 | $config = $this->siteConfig->getSiteConfig(); |
41 | - $this->transport = (new Swift_SmtpTransport($config["SMTP_server"], (int)$config["SMTP_port"])) |
|
41 | + $this->transport = (new Swift_SmtpTransport($config["SMTP_server"], (int) $config["SMTP_port"])) |
|
42 | 42 | ->setUsername($config["SMTP_user"]) |
43 | 43 | ->setPassword($config["SMTP_pass"]) |
44 | 44 | ; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | private function populateUserFromId(int $userId) |
79 | 79 | { |
80 | 80 | $result = $this->userModel->getUserDetailsById($userId); |
81 | - $this->populateUser((array)$result); |
|
81 | + $this->populateUser((array) $result); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function index() |
101 | 101 | { |
102 | - if($this->session->isParamSet("user")) |
|
102 | + if ($this->session->isParamSet("user")) |
|
103 | 103 | { |
104 | 104 | //we are already connected, redirect |
105 | 105 | $this->response->redirect(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | public function register() |
130 | 130 | { |
131 | - if($this->session->isParamSet("user")) |
|
131 | + if ($this->session->isParamSet("user")) |
|
132 | 132 | { |
133 | 133 | //we are already connected, redirect |
134 | 134 | $this->response->redirect(); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | |
189 | 189 | $authUser = $this->userModel->authenticateUser($email, $password); |
190 | - if(!$authUser->success) |
|
190 | + if (!$authUser->success) |
|
191 | 191 | { |
192 | 192 | $error = true; |
193 | 193 | $loginErrors->global = $authUser->message; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | //we are authenticated here |
207 | 207 | |
208 | 208 | //populate the user object with returned data |
209 | - $this->populateUser((array)$authUser->user); |
|
209 | + $this->populateUser((array) $authUser->user); |
|
210 | 210 | $this->setUserSession(); |
211 | 211 | |
212 | 212 | //if all is valid, redirect to user admin page |