@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | 'module' => $this->module |
| 90 | 90 | ]; |
| 91 | 91 | |
| 92 | - if(is_callable($params[0])) { |
|
| 92 | + if (is_callable($params[0])) { |
|
| 93 | 93 | $this->currentRoute['callback'] = $params[0]; |
| 94 | 94 | } else { |
| 95 | 95 | $this->currentRoute['controller'] = $params[0]; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function get($route, ...$params) |
| 114 | 114 | { |
| 115 | - return $this->add($route,'GET', ...$params); |
|
| 115 | + return $this->add($route, 'GET', ...$params); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function post($route, ...$params) |
| 125 | 125 | { |
| 126 | - return $this->add($route,'POST', ...$params); |
|
| 126 | + return $this->add($route, 'POST', ...$params); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function checkVerification() |
| 46 | 46 | { |
| 47 | - if (isset($this->user()->verification_code) && !empty($this->user()->verification_code)){ |
|
| 47 | + if (isset($this->user()->verification_code) && !empty($this->user()->verification_code)) { |
|
| 48 | 48 | return true; |
| 49 | 49 | } |
| 50 | 50 | return false; |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | { |
| 187 | 187 | $user = $this->authService->get($this->keys['otpToken'], $otp_token); |
| 188 | 188 | |
| 189 | - if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])){ |
|
| 189 | + if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])) { |
|
| 190 | 190 | throw new AuthException(ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN); |
| 191 | 191 | } |
| 192 | 192 | |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | { |
| 187 | 187 | $user = $this->authService->get($this->keys['otpToken'], $otp_token); |
| 188 | 188 | |
| 189 | - if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])){ |
|
| 189 | + if (new \DateTime() >= new \DateTime($user[$this->keys['otpExpiryIn']])) { |
|
| 190 | 190 | throw new AuthException(ExceptionMessages::VERIFICATION_CODE_EXPIRY_IN); |
| 191 | 191 | } |
| 192 | 192 | |