Passed
Push — v5 ( c0775f...b45ef7 )
by Alexey
16:22
created
system/modules/Users/controllers/UsersAppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.