Passed
Push — Security_and_bug_fixes ( 6b5782...452225 )
by Stone
02:00
created
App/Controllers/Home.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $this->config = $this->siteConfig->getSiteConfig();
37 37
         $this->userModel = new UserModel($this->container);
38 38
         $this->postModel = new PostModel($this->container);
39
-        if($this->auth->isuser())
39
+        if ($this->auth->isuser())
40 40
         {
41 41
             $this->data["user"] = $this->userModel->getUserDetailsById($this->session->get("userId"));
42 42
         }
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
         }
131 131
 
132 132
 
133
-        if(Config::GOOGLE_RECAPCHA_PUBLIC_KEY !== "" && Config::GOOGLE_RECAPCHA_SECRET_KEY !== "")
133
+        if (Config::GOOGLE_RECAPCHA_PUBLIC_KEY !== "" && Config::GOOGLE_RECAPCHA_SECRET_KEY !== "")
134 134
         {
135
-            if(empty($message["g-recaptcha-response"]))
135
+            if (empty($message["g-recaptcha-response"]))
136 136
             {
137 137
                 $error = true;
138 138
                 $this->alertBox->setAlert('Capcha not set', 'error');
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $grequest = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.Config::GOOGLE_RECAPCHA_SECRET_KEY.'&response='.$message["g-recaptcha-response"]);
142 142
             // The result is in a JSON format. Decoding..
143 143
             $gresponse = json_decode($grequest);
144
-            if(!$gresponse->success)
144
+            if (!$gresponse->success)
145 145
             {
146 146
                 $error = true;
147 147
                 $this->alertBox->setAlert('Capcha Error', 'error');
Please login to merge, or discard this patch.