@@ -193,8 +193,7 @@ discard block |
||
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 |
||
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 |
||
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 |