Failed Conditions
Push — develop ( 2bc085...2a8e65 )
by Remco
04:41
created

src/AbstractIntegration.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
4
5
use Pronamic\WordPress\Pay\AbstractGatewayIntegration;
0 ignored issues
show
The type Pronamic\WordPress\Pay\AbstractGatewayIntegration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
abstract class AbstractIntegration extends AbstractGatewayIntegration {
8
	public function __construct( $args = array() ) {
9
		$args = wp_parse_args(
10
			$args,
11
			array(
12
				'id'            => null,
13
				'name'          => null,
14
				'url'           => 'https://secure.ogone.com/',
15
				'product_url'   => \__( 'https://payment-services.ingenico.com/nl/en', 'pronamic_ideal' ),
16
				'manual_url'    => \__( 'https://www.pronamic.eu/support/how-to-connect-ingenico-with-wordpress-via-pronamic-pay/', 'pronamic_ideal' ),
17
				'dashboard_url' => 'https://secure.ogone.com/',
18
				'provider'      => 'ogone',
19
				'supports'      => array(
20
					'webhook',
21
					'webhook_log',
22
				),
23
			)
24
		);
25
26
		parent::__construct( $args );
27
28
		// Actions.
29
		$function = array( __NAMESPACE__ . '\Listener', 'listen' );
30
31
		if ( ! has_action( 'wp_loaded', $function ) ) {
32
			add_action( 'wp_loaded', $function );
33
		}
34
	}
35
}
36