Completed
Push — master ( feb49b...2e7061 )
by Stephanie
06:17 queued 03:03
created

FrmDefActiveCampaignAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
// add post action
3 View Code Duplication
class FrmDefPostAction extends FrmFormAction {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
4
	public function __construct() {
5
		$action_ops = FrmFormAction::default_action_opts( 'frm_wordpress_icon frm-inverse frm_show_upgrade' );
6
		$action_ops['color']   = 'rgb(0,160,210)';
7
8
		parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops );
9
	}
10
}
11
12
// add register action
13 View Code Duplication
class FrmDefRegAction extends FrmFormAction {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
14
	public function __construct() {
15
		$action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' );
16
		$action_ops['plugin']  = 'registration';
17
		$action_ops['color']   = 'var(--pink)';
18
		parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops );
19
	}
20
}
21
22
// add paypal action
23
class FrmDefPayPalAction extends FrmFormAction {
24
	public function __construct() {
25
		$action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon frm-inverse frm_show_upgrade' );
26
		$action_ops['color'] = 'var(--primary-hover)';
27
28
		parent::__construct( 'paypal', 'PayPal', $action_ops );
29
	}
30
}
31
32
// add aweber action
33
class FrmDefAweberAction extends FrmFormAction {
34
	public function __construct() {
35
		$action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' );
36
		$action_ops['color'] = 'var(--green)';
37
		parent::__construct( 'aweber', 'AWeber', $action_ops );
38
	}
39
}
40
41
// add mailchimp action
42
class FrmDefMlcmpAction extends FrmFormAction {
43
	public function __construct() {
44
		$action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade frm-inverse' );
45
		$action_ops['color']   = 'var(--dark-grey)';
46
47
		parent::__construct( 'mailchimp', 'MailChimp', $action_ops );
48
	}
49
}
50
51
// add twilio action
52 View Code Duplication
class FrmDefTwilioAction extends FrmFormAction {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
53
	public function __construct() {
54
		$action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
55
		parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops );
56
	}
57
}
58
59
// add payment action
60 View Code Duplication
class FrmDefHrsAction extends FrmFormAction {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
61
	public function __construct() {
62
		$action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' );
63
		$action_ops['color'] = 'var(--green)';
64
		$action_ops['plugin'] = 'stripe';
65
		parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops );
66
	}
67
}
68
69
class FrmDefActiveCampaignAction extends FrmFormAction {
70
	public function __construct() {
71
		$action_ops = FrmFormAction::default_action_opts( 'frm_activecampaign_icon frm_show_upgrade' );
72
		$action_ops['color'] = 'var(--primary-hover)';
73
		parent::__construct( 'activecampaign', 'ActiveCampaign', $action_ops );
74
	}
75
}
76
77
class FrmDefSalesforceAction extends FrmFormAction {
78
	public function __construct() {
79
		$action_ops = FrmFormAction::default_action_opts( 'frm_salesforce_icon frm-inverse frm_show_upgrade' );
80
		$action_ops['color'] = 'var(--primary-color)';
81
		parent::__construct( 'salesforce', 'Salesforce', $action_ops );
82
	}
83
}
84
85
class FrmDefConstContactAction extends FrmFormAction {
86
	public function __construct() {
87
		$action_ops = FrmFormAction::default_action_opts( 'frm_constant_contact_icon frm_show_upgrade' );
88
		$action_ops['color'] = 'rgb(0,160,210)';
89
		parent::__construct( 'constantcontact', 'Constant Contact', $action_ops );
90
	}
91
}
92
93
class FrmDefGetResponseAction extends FrmFormAction {
94
	public function __construct() {
95
		$action_ops = FrmFormAction::default_action_opts( 'frm_getresponse_icon frm_show_upgrade' );
96
		$action_ops['color'] = '#00baff';
97
		parent::__construct( 'getresponse', 'GetResponse', $action_ops );
98
	}
99
}
100
101
class FrmDefHubspotAction extends FrmFormAction {
102
	public function __construct() {
103
		$action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' );
104
		$action_ops['color'] = 'var(--orange)';
105
		parent::__construct( 'hubspot', 'Hubspot', $action_ops );
106
	}
107
}
108
109
class FrmDefHighriseAction extends FrmFormAction {
110
	public function __construct() {
111
		$action_ops = FrmFormAction::default_action_opts( 'frm_building_icon frm_show_upgrade' );
112
		$action_ops['color'] = 'var(--purple)';
113
		parent::__construct( 'highrise', 'Highrise', $action_ops );
114
	}
115
}
116
117
class FrmDefMailpoetAction extends FrmFormAction {
118
	public function __construct() {
119
		$action_ops = FrmFormAction::default_action_opts( 'frm_mailpoet_icon frm_show_upgrade' );
120
		$action_ops['color'] = 'var(--orange)';
121
		parent::__construct( 'mailpoet', 'MailPoet', $action_ops );
122
	}
123
}
124
125 View Code Duplication
class FrmDefApiAction extends FrmFormAction {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
126
	public function __construct() {
127
		$action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' );
128
		$action_ops['color'] = 'var(--purple)';
129
		parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops );
130
	}
131
}
132