@@ -226,8 +226,7 @@ discard block |
||
| 226 | 226 | document.getElementById("' . $formId . '").submit(); |
| 227 | 227 | } |
| 228 | 228 | </script>'; |
| 229 | - } |
|
| 230 | - elseif ($this->version == 'v3') { |
|
| 229 | + } elseif ($this->version == 'v3') { |
|
| 231 | 230 | |
| 232 | 231 | $action = Arr::get($configuration, 'action', 'homepage'); |
| 233 | 232 | |
@@ -237,8 +236,7 @@ discard block |
||
| 237 | 236 | if ($js_custom_validation) { |
| 238 | 237 | |
| 239 | 238 | $validate_function = ($js_custom_validation) ? "{$js_custom_validation}(token);" : ''; |
| 240 | - } |
|
| 241 | - else { |
|
| 239 | + } else { |
|
| 242 | 240 | |
| 243 | 241 | $js_then_callback = Arr::get($configuration, 'callback_then', ''); |
| 244 | 242 | $js_callback_catch = Arr::get($configuration, 'callback_catch', ''); |
@@ -323,8 +321,7 @@ discard block |
||
| 323 | 321 | curl_setopt($curl, CURLOPT_TIMEOUT, $this->curl_timeout); |
| 324 | 322 | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); |
| 325 | 323 | $curl_response = curl_exec($curl); |
| 326 | - } |
|
| 327 | - else { |
|
| 324 | + } else { |
|
| 328 | 325 | $curl_response = file_get_contents($url); |
| 329 | 326 | } |
| 330 | 327 | |