Passed
Push — master ( e4804f...72064e )
by Roberto
02:23 queued 11s
created
src/ReCaptchaBuilder.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,8 +153,7 @@  discard block
 block discarded – undo
153 153
 		         document.getElementById("' . $formId . '").submit();
154 154
 		       }
155 155
 		     </script>';
156
-		}
157
-		elseif ($this->version == 'v3') {
156
+		} elseif ($this->version == 'v3') {
158 157
 
159 158
 			$action = array_get($configuration, 'action', 'homepage');
160 159
 
@@ -164,8 +163,7 @@  discard block
 block discarded – undo
164 163
 			if ($js_custom_validation) {
165 164
 
166 165
 				$validate_function = ($js_custom_validation) ? "{$js_custom_validation}(token);" : '';
167
-			}
168
-			else {
166
+			} else {
169 167
 
170 168
 				$js_then_callback = array_get($configuration, 'callback_then', '');
171 169
 				$js_callback_catch = array_get($configuration, 'callback_catch', '');
@@ -239,8 +237,7 @@  discard block
 block discarded – undo
239 237
 			curl_setopt($curl, CURLOPT_TIMEOUT, 1);
240 238
 			curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
241 239
 			$curl_response = curl_exec($curl);
242
-		}
243
-		else {
240
+		} else {
244 241
 			$curl_response = file_get_contents($url);
245 242
 		}
246 243
 		if (is_null($curl_response) || empty($curl_response)) {
Please login to merge, or discard this patch.