Passed
Branch master (af5a34)
by Elia
01:48
created
Category
user/update/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     $user->birthdate = $data->birthdate;
37 37
     $user->aims = $data->aims;
38 38
 
39
-    if($user->update()){
39
+    if ($user->update()) {
40 40
 
41 41
         $token = array(
42 42
             "iss" => $token_conf['issuer'],
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 returnError();
64 64
             }
65 65
 
66
-        } catch (Exception $e){
66
+        } catch (Exception $e) {
67 67
             returnForbidden($e);
68 68
         }
69 69
 
Please login to merge, or discard this patch.
user/login/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 $user->email = $data->email;
23 23
 $email_exists = $user->emailExists();
24 24
 
25
-if($email_exists && password_verify($data->password, $user->password)){
25
+if ($email_exists && password_verify($data->password, $user->password)) {
26 26
 
27 27
     $token = array(
28 28
         "iss" => $token_conf['issuer'],
Please login to merge, or discard this patch.