@@ -153,8 +153,7 @@ discard block |
||
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 |
||
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 |
||
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)) { |