Passed
Push — Auth ( 6598c8...9ea218 )
by Stone
02:12
created
App/Controllers/Password.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function reset($get)
46 46
     {
47 47
         //only get messages here
48
-        if(!$this->startsWith(strtolower($get),"get"))
48
+        if (!$this->startsWith(strtolower($get), "get"))
49 49
         {
50 50
             throw new \Exception("invalid call");
51 51
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $token = $this->request->getData("token");
55 55
 
56 56
         //verify if token is valid
57
-        if(!$this->userModel->getUserDetailsByToken($token))
57
+        if (!$this->userModel->getUserDetailsByToken($token))
58 58
         {
59 59
             $this->alertBox->setAlert('Invalid reset token, please request a new password', 'error');
60 60
             $this->response->redirect();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $error = false;
79 79
         $registerErrors = new \stdClass();
80
-        if($password !== $confirm)
80
+        if ($password !== $confirm)
81 81
         {
82 82
             $error = true;
83 83
             $registerErrors->forgotPassword = "password and confirmation do not match";
Please login to merge, or discard this patch.
App/Modules/SendMail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use Swift_Message;
9 9
 use Swift_SmtpTransport;
10 10
 
11
-class SendMail extends Module{
11
+class SendMail extends Module {
12 12
 
13 13
     private $siteConfig;
14 14
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
         // Create the Transport for mail sending
26 26
         //$config = $this->siteConfig->getSiteConfig();
27
-        $this->transport = (new Swift_SmtpTransport($this->siteConfig["SMTP_server"], (int)$this->siteConfig["SMTP_port"]))
27
+        $this->transport = (new Swift_SmtpTransport($this->siteConfig["SMTP_server"], (int) $this->siteConfig["SMTP_port"]))
28 28
             ->setUsername($this->siteConfig["SMTP_user"])
29 29
             ->setPassword($this->siteConfig["SMTP_pass"])
30 30
         ;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $message = "<a href=\"".$url."\">Define new password</a>";
68 68
 
69
-        $this->send($to, "Define Password", $message );
69
+        $this->send($to, "Define Password", $message);
70 70
 
71 71
     }
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.