Passed
Push — Auth ( 7d6ef6...9d76f0 )
by Stone
02:16
created
App/Models/UserModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         //check if email is valid for sanity
69 69
         if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
70 70
             $email = htmlspecialchars($email);
71
-            throw new BlogocException("invalid email " . $email);
71
+            throw new BlogocException("invalid email ".$email);
72 72
         }
73 73
         $sql = "
74 74
             SELECT idusers, username, avatar, email, surname, name, creation_date, last_update, locked_out, role_name, role_level
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $this->bind(':roles_idroles', 1);
125 125
         $this->execute();
126 126
 
127
-        return (int)$this->dbh->lastInsertId();
127
+        return (int) $this->dbh->lastInsertId();
128 128
 
129 129
     }
130 130
 }
131 131
\ No newline at end of file
Please login to merge, or discard this patch.