@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | public function activationAction($userId = 0, $hash = '') { |
129 | - $user = User::get((int)$userId); |
|
130 | - if (!$user || !$hash || $user->activation !== (string)$hash) { |
|
129 | + $user = User::get((int) $userId); |
|
130 | + if (!$user || !$hash || $user->activation !== (string) $hash) { |
|
131 | 131 | Tools::redirect('/', 'Во время активации произошли ошибки', 'danger'); |
132 | 132 | } |
133 | 133 | $user->activation = ''; |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | public function resendActivationAction($userId = 0) { |
173 | - $user = User::get((int)$userId); |
|
173 | + $user = User::get((int) $userId); |
|
174 | 174 | if (!$user) { |
175 | 175 | Tools::redirect('/', 'Не указан пользователь', 'danger'); |
176 | 176 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | public function getPartnerInfoAction($userId = 0) { |
189 | - $userId = (int)$userId; |
|
189 | + $userId = (int) $userId; |
|
190 | 190 | $result = new Result(); |
191 | 191 | if (!$userId) { |
192 | 192 | $result->success = false; |