@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 |
||
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'); |