Completed
Pull Request — master (#23)
by Roberto
08:58
created
src/ReCaptchaBuilder.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -193,8 +193,7 @@  discard block
 block discarded – undo
193 193
 		         document.getElementById("' . $formId . '").submit();
194 194
 		       }
195 195
 		     </script>';
196
-		}
197
-		elseif ($this->version == 'v3') {
196
+		} elseif ($this->version == 'v3') {
198 197
 
199 198
 			$action = array_get($configuration, 'action', 'homepage');
200 199
 
@@ -204,8 +203,7 @@  discard block
 block discarded – undo
204 203
 			if ($js_custom_validation) {
205 204
 
206 205
 				$validate_function = ($js_custom_validation) ? "{$js_custom_validation}(token);" : '';
207
-			}
208
-			else {
206
+			} else {
209 207
 
210 208
 				$js_then_callback = array_get($configuration, 'callback_then', '');
211 209
 				$js_callback_catch = array_get($configuration, 'callback_catch', '');
@@ -288,8 +286,7 @@  discard block
 block discarded – undo
288 286
 			curl_setopt($curl, CURLOPT_TIMEOUT, $this->curl_timeout);
289 287
 			curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
290 288
 			$curl_response = curl_exec($curl);
291
-		}
292
-		else {
289
+		} else {
293 290
 			$curl_response = file_get_contents($url);
294 291
 		}
295 292
 
Please login to merge, or discard this patch.