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

src/AbstractIntegration.php (3 issues)

1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
4
5
use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration as Common_AbstractIntegration;
6
7
abstract class AbstractIntegration extends Common_AbstractIntegration {
8
	public function __construct() {
9
		$this->url           = 'https://secure.ogone.com/';
10
		$this->product_url   = __( 'https://payment-services.ingenico.com/nl/en', 'pronamic_ideal' );
0 ignored issues
show
The function __ 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

10
		$this->product_url   = /** @scrutinizer ignore-call */ __( 'https://payment-services.ingenico.com/nl/en', 'pronamic_ideal' );
Loading history...
11
		$this->dashboard_url = 'https://secure.ogone.com/';
12
		$this->provider      = 'ogone';
13
14
		// Actions.
15
		$function = array( __NAMESPACE__ . '\Listener', 'listen' );
16
17
		if ( ! has_action( 'wp_loaded', $function ) ) {
0 ignored issues
show
The function has_action 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

17
		if ( ! /** @scrutinizer ignore-call */ has_action( 'wp_loaded', $function ) ) {
Loading history...
18
			add_action( 'wp_loaded', $function );
0 ignored issues
show
The function add_action 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

18
			/** @scrutinizer ignore-call */ 
19
   add_action( 'wp_loaded', $function );
Loading history...
19
		}
20
	}
21
22
	public function get_settings_class() {
23
		return __NAMESPACE__ . '\Settings';
24
	}
25
}
26