@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | use Core\JsonException; |
9 | 9 | use Core\Traits\StringFunctions; |
10 | 10 | |
11 | -class User extends AjaxController{ |
|
11 | +class User extends AjaxController { |
|
12 | 12 | |
13 | 13 | use StringFunctions; |
14 | 14 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | //the router needs a parameter with get functions else throsw a wobbly |
26 | 26 | //we pass a get variable and call the /controller/function/get?bla |
27 | 27 | //for better use and security, we must pass "get" as the parameter |
28 | - if(!$this->startsWith(strtolower($get),"get")) |
|
28 | + if (!$this->startsWith(strtolower($get), "get")) |
|
29 | 29 | { |
30 | 30 | throw new \Exception("invalid call"); |
31 | 31 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $email = htmlspecialchars($email); |
37 | 37 | throw new JsonException("invalid email ".$email); |
38 | 38 | } |
39 | - $return = !$this->userModel->isEmailUsed($email); |
|
39 | + $return = !$this->userModel->isEmailUsed($email); |
|
40 | 40 | echo json_encode($return); |
41 | 41 | |
42 | 42 | } |