TestConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_default_form_action_url() 0 8 2
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard;
4
5
/**
6
 * Title: Ingenico OrderStandard test config
7
 * Description:
8
 * Copyright: 2005-2021 Pronamic
9
 * Company: Pronamic
10
 *
11
 * @author  Remco Tolsma
12
 * @version 2.0.0
13
 * @since   1.0.0
14
 */
15
class TestConfig extends Config {
16
	/**
17
	 * Get the default Ogone e-Commerce form action URL.
18
	 *
19
	 * @since 1.2.9
20
	 * @return string
21
	 */
22
	protected function get_default_form_action_url() {
23
		$is_utf8 = strcasecmp( get_bloginfo( 'charset' ), 'UTF-8' ) === 0;
24
25
		if ( $is_utf8 ) {
26
			return 'https://secure.ogone.com/ncol/test/orderstandard_utf8.asp';
27
		}
28
29
		return 'https://secure.ogone.com/ncol/test/orderstandard.asp';
30
	}
31
}
32