Passed
Push — Auth ( d58f03...e4eb07 )
by Stone
01:48
created
App/Models/UserModel.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,12 +157,12 @@
 block discarded – undo
157 157
         return $this->getUserDetailsByEmail($email) !== false;
158 158
     }
159 159
 
160
-     /**
161
-     * register a new user
162
-     * @param \stdClass $userData
163
-     * @return int
164
-     * @throws \Exception
165
-     */
160
+        /**
161
+         * register a new user
162
+         * @param \stdClass $userData
163
+         * @return int
164
+         * @throws \Exception
165
+         */
166 166
     public function registerUser(\stdClass $userData): int
167 167
     {
168 168
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,9 +200,11 @@
 block discarded – undo
200 200
 
201 201
         $user = $this->getUserDetailsByEmail($email);
202 202
 
203
-        if($user === false) //no user exists
203
+        if($user === false) {
204
+            //no user exists
204 205
         {
205 206
             $response->message = "email doesn't exist, register a new account?";
207
+        }
206 208
             return $response;
207 209
         }
208 210
 
Please login to merge, or discard this patch.