Completed
Push — staging ( 78e662...0f9e2f )
by
unknown
05:16
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php 
2
/*
3
*	All Third Party Integrations Loaded Here
4
*	@since 6.0.3
5
*/
6
class YIKES_Mailchimp_ThirdParty_Integrations {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
8
	function __construct() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
9
		add_action( 'init', array( $this, 'load_third_party_integrations' ) );
10
	}
11
	
12
	/*
13
	*	Load any third party integrations
14
	*
15
	*/
16
	public function load_third_party_integrations() {
17
		// required..*
18
		include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
19
		/* Visual Composer */
20
		if( is_plugin_active( 'js_composer/js_composer.php' ) ) {
21
			new YIKES_Mailchimp_Visual_Composer_Extension();
22
		}
23
	}
24
25
}
26