Test Failed
Push — develop ( 7cb291...9cc0c5 )
by Reüel
03:00
created

src/OrderStandard/TestConfig.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard;
4
5
/**
6
 * Title: Ingenico OrderStandard test config
7
 * Description:
8
 * Copyright: 2005-2019 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;
0 ignored issues
show
The function get_bloginfo was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
		$is_utf8 = strcasecmp( /** @scrutinizer ignore-call */ get_bloginfo( 'charset' ), 'UTF-8' ) === 0;
Loading history...
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