Completed
Branch FET/add-loco-translate-support (7d9689)
by
unknown
26:14 queued 18:13
created
payment_methods/Paypal_Express/forms/SettingsForm.php 2 patches
Indentation   +196 added lines, -196 removed lines patch added patch discarded remove patch
@@ -20,208 +20,208 @@
 block discarded – undo
20 20
 class SettingsForm extends EE_Payment_Method_Form
21 21
 {
22 22
 
23
-    /**
24
-     * @var string of HTML being the help tab link
25
-     */
26
-    protected $helpTabLink;
23
+	/**
24
+	 * @var string of HTML being the help tab link
25
+	 */
26
+	protected $helpTabLink;
27 27
 
28
-    /**
29
-     * SettingsForm constructor.
30
-     *
31
-     * @param array $options_array
32
-     * @param string     $help_tab_link
33
-     */
34
-    public function __construct(array $options_array = array(), $help_tab_link)
35
-    {
36
-        $this->helpTabLink = $help_tab_link;
37
-        $options_array = array_replace_recursive(
38
-            array(
39
-                'extra_meta_inputs' => array(
40
-                    'api_username' => new EE_Text_Input(
41
-                        array(
42
-                            'html_label_text' => sprintf(
43
-                                esc_html__('API Username %s', 'event_espresso'),
44
-                                $help_tab_link
45
-                            ),
46
-                            'required'        => true,
47
-                        )
48
-                    ),
49
-                    'api_password' => new EE_Text_Input(
50
-                        array(
51
-                            'html_label_text' => sprintf(
52
-                                esc_html__('API Password %s', 'event_espresso'),
53
-                                $help_tab_link
54
-                            ),
55
-                            'required'        => true,
56
-                        )
57
-                    ),
58
-                    'api_signature' => new EE_Text_Input(
59
-                        array(
60
-                            'html_label_text' => sprintf(
61
-                                esc_html__('API Signature %s', 'event_espresso'),
62
-                                $help_tab_link
63
-                            ),
64
-                            'required'        => true,
65
-                        )
66
-                    ),
67
-                    'request_shipping_addr' => new EE_Yes_No_Input(
68
-                        array(
69
-                            'html_label_text' => sprintf(
70
-                                esc_html__('Request Shipping Address %s', 'event_espresso'),
71
-                                $help_tab_link
72
-                            ),
73
-                            'html_help_text'  => esc_html__(
74
-                            // @codingStandardsIgnoreStart
75
-                                'If set to "Yes", then a shipping address will be requested on the PayPal checkout page.',
76
-                                // @codingStandardsIgnoreEnd
77
-                                'event_espresso'
78
-                            ),
79
-                            'required'        => true,
80
-                            'default'         => false,
81
-                        )
82
-                    ),
83
-                    'image_url' => new EE_Admin_File_Uploader_Input(
84
-                        array(
85
-                            'html_label_text' => sprintf(
86
-                                esc_html__('Image URL %s', 'event_espresso'),
87
-                                $help_tab_link
88
-                            ),
89
-                            'html_help_text'  => esc_html__(
90
-                                'Used for your business/personal logo on the PayPal page',
91
-                                'event_espresso'
92
-                            ),
93
-                            'required'        => false,
94
-                        )
95
-                    ),
96
-                )
97
-            ),
98
-            $options_array
99
-        );
100
-        parent::__construct($options_array);
101
-    }
28
+	/**
29
+	 * SettingsForm constructor.
30
+	 *
31
+	 * @param array $options_array
32
+	 * @param string     $help_tab_link
33
+	 */
34
+	public function __construct(array $options_array = array(), $help_tab_link)
35
+	{
36
+		$this->helpTabLink = $help_tab_link;
37
+		$options_array = array_replace_recursive(
38
+			array(
39
+				'extra_meta_inputs' => array(
40
+					'api_username' => new EE_Text_Input(
41
+						array(
42
+							'html_label_text' => sprintf(
43
+								esc_html__('API Username %s', 'event_espresso'),
44
+								$help_tab_link
45
+							),
46
+							'required'        => true,
47
+						)
48
+					),
49
+					'api_password' => new EE_Text_Input(
50
+						array(
51
+							'html_label_text' => sprintf(
52
+								esc_html__('API Password %s', 'event_espresso'),
53
+								$help_tab_link
54
+							),
55
+							'required'        => true,
56
+						)
57
+					),
58
+					'api_signature' => new EE_Text_Input(
59
+						array(
60
+							'html_label_text' => sprintf(
61
+								esc_html__('API Signature %s', 'event_espresso'),
62
+								$help_tab_link
63
+							),
64
+							'required'        => true,
65
+						)
66
+					),
67
+					'request_shipping_addr' => new EE_Yes_No_Input(
68
+						array(
69
+							'html_label_text' => sprintf(
70
+								esc_html__('Request Shipping Address %s', 'event_espresso'),
71
+								$help_tab_link
72
+							),
73
+							'html_help_text'  => esc_html__(
74
+							// @codingStandardsIgnoreStart
75
+								'If set to "Yes", then a shipping address will be requested on the PayPal checkout page.',
76
+								// @codingStandardsIgnoreEnd
77
+								'event_espresso'
78
+							),
79
+							'required'        => true,
80
+							'default'         => false,
81
+						)
82
+					),
83
+					'image_url' => new EE_Admin_File_Uploader_Input(
84
+						array(
85
+							'html_label_text' => sprintf(
86
+								esc_html__('Image URL %s', 'event_espresso'),
87
+								$help_tab_link
88
+							),
89
+							'html_help_text'  => esc_html__(
90
+								'Used for your business/personal logo on the PayPal page',
91
+								'event_espresso'
92
+							),
93
+							'required'        => false,
94
+						)
95
+					),
96
+				)
97
+			),
98
+			$options_array
99
+		);
100
+		parent::__construct($options_array);
101
+	}
102 102
 
103 103
 
104 104
 
105
-    /**
106
-     * Does the normal validation, but also verifies the PayPal API credentials work.
107
-     * If they don't, sets a validation error on the entire form, and adds validation errors (which are really more tips)
108
-     * on each of the inputs that could be the cause of the problem.
109
-     * @throws EntityNotFoundException
110
-     */
111
-    public function _validate()
112
-    {
113
-        parent::_validate();
114
-        if (! $this->_payment_method_type instanceof \EE_PMT_Paypal_Express) {
115
-            throw new EntityNotFoundException('EE_PMT_Paypal_Express', '$this->_payment_method_type');
116
-        }
117
-        if (! $this->_payment_method_type->get_gateway() instanceof \EEG_Paypal_Express) {
118
-            throw new EntityNotFoundException('EEG_Paypal_Express', '$this->_payment_method_type->get_gateway()');
119
-        }
120
-        $credentials_message = $this->checkForCredentialsErrors();
121
-        if ($credentials_message !== '') {
122
-            $this->add_validation_error($credentials_message);
123
-            $this->get_input('PMD_debug_mode')->add_validation_error(
124
-                esc_html__('If you are using PayPal Sandbox (test) credentials, Debug mode should be set to "Yes". Otherwise, if you are using live PayPal credentials, set this to "No".', 'event_espresso')
125
-            );
126
-            $this->get_input('api_username')->add_validation_error(
127
-                sprintf(
128
-                    esc_html__('Are you sure this is your API username, not your login username?%1$s', 'event_espresso'),
129
-                    $this->helpTabLink()
130
-                )
131
-            );
132
-            $this->get_input('api_password')->add_validation_error(
133
-                sprintf(
134
-                    esc_html__('Are you sure this is your API password, not your login password.%1$s', 'event_espresso'),
135
-                    $this->helpTabLink()
136
-                )
137
-            );
138
-            $this->get_input('api_signature')->add_validation_error(
139
-                sprintf(
140
-                    esc_html__('Please verify your API signature is correct.%1$s', 'event_espresso'),
141
-                    $this->helpTabLink()
142
-                )
143
-            );
144
-        }
145
-    }
105
+	/**
106
+	 * Does the normal validation, but also verifies the PayPal API credentials work.
107
+	 * If they don't, sets a validation error on the entire form, and adds validation errors (which are really more tips)
108
+	 * on each of the inputs that could be the cause of the problem.
109
+	 * @throws EntityNotFoundException
110
+	 */
111
+	public function _validate()
112
+	{
113
+		parent::_validate();
114
+		if (! $this->_payment_method_type instanceof \EE_PMT_Paypal_Express) {
115
+			throw new EntityNotFoundException('EE_PMT_Paypal_Express', '$this->_payment_method_type');
116
+		}
117
+		if (! $this->_payment_method_type->get_gateway() instanceof \EEG_Paypal_Express) {
118
+			throw new EntityNotFoundException('EEG_Paypal_Express', '$this->_payment_method_type->get_gateway()');
119
+		}
120
+		$credentials_message = $this->checkForCredentialsErrors();
121
+		if ($credentials_message !== '') {
122
+			$this->add_validation_error($credentials_message);
123
+			$this->get_input('PMD_debug_mode')->add_validation_error(
124
+				esc_html__('If you are using PayPal Sandbox (test) credentials, Debug mode should be set to "Yes". Otherwise, if you are using live PayPal credentials, set this to "No".', 'event_espresso')
125
+			);
126
+			$this->get_input('api_username')->add_validation_error(
127
+				sprintf(
128
+					esc_html__('Are you sure this is your API username, not your login username?%1$s', 'event_espresso'),
129
+					$this->helpTabLink()
130
+				)
131
+			);
132
+			$this->get_input('api_password')->add_validation_error(
133
+				sprintf(
134
+					esc_html__('Are you sure this is your API password, not your login password.%1$s', 'event_espresso'),
135
+					$this->helpTabLink()
136
+				)
137
+			);
138
+			$this->get_input('api_signature')->add_validation_error(
139
+				sprintf(
140
+					esc_html__('Please verify your API signature is correct.%1$s', 'event_espresso'),
141
+					$this->helpTabLink()
142
+				)
143
+			);
144
+		}
145
+	}
146 146
 
147 147
 
148 148
 
149
-    /**
150
-     * Gets the HTML to show the link to the help tab
151
-     * @return string
152
-     */
153
-    protected function helpTabLink()
154
-    {
155
-        return $this->helpTabLink;
156
-    }
157
-    /**
158
-     * Tests the the PayPal API credentials work ok
159
-     * @return string of an error using the credentials, otherwise, if the credentials work, returns a blank string
160
-     */
161
-    protected function checkForCredentialsErrors()
162
-    {
163
-        $request_params = array(
164
-            'METHOD'    => 'GetBalance',
165
-            'VERSION'   => '204.0',
166
-            'USER'      => urlencode($this->get_input_value('api_username')),
167
-            'PWD'       => urlencode($this->get_input_value('api_password')),
168
-            'SIGNATURE' => urlencode($this->get_input_value('api_signature')),
169
-        );
170
-        $gateway_url = $this->get_input_value('PMD_debug_mode')
171
-            ? 'https://api-3t.sandbox.paypal.com/nvp'
172
-            : 'https://api-3t.paypal.com/nvp';
173
-        // Request Customer Details.
174
-        $response = wp_remote_post(
175
-            $gateway_url,
176
-            array(
177
-                'method'      => 'POST',
178
-                'timeout'     => 45,
179
-                'httpversion' => '1.1',
180
-                'cookies'     => array(),
181
-                'headers'     => array(),
182
-                'body'        => http_build_query($request_params, '', '&'),
183
-            )
184
-        );
185
-        if (is_wp_error($response) || empty($response['body'])) {
186
-            // If we got here then there was an error in this request.
187
-            // maybe is turned off. We don't know the credentials are invalid
188
-            EE_Error::add_error(
189
-                sprintf(
190
-                    esc_html__('Your PayPal credentials could not be verified. There was an error communicating with PayPal, it was %1$s', 'event_espresso'),
191
-                    $response->get_error_message()
192
-                ),
193
-                __FILE__,
194
-                __FUNCTION__,
195
-                __LINE__
196
-            );
197
-        }
198
-        $response_args = array();
199
-        parse_str(urldecode($response['body']), $response_args);
149
+	/**
150
+	 * Gets the HTML to show the link to the help tab
151
+	 * @return string
152
+	 */
153
+	protected function helpTabLink()
154
+	{
155
+		return $this->helpTabLink;
156
+	}
157
+	/**
158
+	 * Tests the the PayPal API credentials work ok
159
+	 * @return string of an error using the credentials, otherwise, if the credentials work, returns a blank string
160
+	 */
161
+	protected function checkForCredentialsErrors()
162
+	{
163
+		$request_params = array(
164
+			'METHOD'    => 'GetBalance',
165
+			'VERSION'   => '204.0',
166
+			'USER'      => urlencode($this->get_input_value('api_username')),
167
+			'PWD'       => urlencode($this->get_input_value('api_password')),
168
+			'SIGNATURE' => urlencode($this->get_input_value('api_signature')),
169
+		);
170
+		$gateway_url = $this->get_input_value('PMD_debug_mode')
171
+			? 'https://api-3t.sandbox.paypal.com/nvp'
172
+			: 'https://api-3t.paypal.com/nvp';
173
+		// Request Customer Details.
174
+		$response = wp_remote_post(
175
+			$gateway_url,
176
+			array(
177
+				'method'      => 'POST',
178
+				'timeout'     => 45,
179
+				'httpversion' => '1.1',
180
+				'cookies'     => array(),
181
+				'headers'     => array(),
182
+				'body'        => http_build_query($request_params, '', '&'),
183
+			)
184
+		);
185
+		if (is_wp_error($response) || empty($response['body'])) {
186
+			// If we got here then there was an error in this request.
187
+			// maybe is turned off. We don't know the credentials are invalid
188
+			EE_Error::add_error(
189
+				sprintf(
190
+					esc_html__('Your PayPal credentials could not be verified. There was an error communicating with PayPal, it was %1$s', 'event_espresso'),
191
+					$response->get_error_message()
192
+				),
193
+				__FILE__,
194
+				__FUNCTION__,
195
+				__LINE__
196
+			);
197
+		}
198
+		$response_args = array();
199
+		parse_str(urldecode($response['body']), $response_args);
200 200
 
201
-        if (empty($response_args['ACK'])) {
202
-            EE_Error::add_error(
203
-                esc_html__('Your PayPal credentials could not be verified. Part of their response was missing.', 'event_espresso'),
204
-                __FILE__,
205
-                __FUNCTION__,
206
-                __LINE__
207
-            );
208
-        }
209
-        if (in_array(
210
-            $response_args['ACK'],
211
-            array(
212
-                'Success',
213
-                'SuccessWithWarning'
214
-            ),
215
-            true
216
-        )
217
-        ) {
218
-            return '';
219
-        } else {
220
-            return sprintf(
221
-                esc_html__('Your PayPal API credentials appear to be invalid. PayPal said "%1$s (%2$s)". Please see tips below.', 'event_espresso'),
222
-                isset($response_args['L_LONGMESSAGE0']) ? $response_args['L_LONGMESSAGE0'] : esc_html__('No error message received from PayPal', 'event_espresso'),
223
-                isset($response_args['L_ERRORCODE0']) ? $response_args['L_ERRORCODE0'] : 0
224
-            );
225
-        }
226
-    }
201
+		if (empty($response_args['ACK'])) {
202
+			EE_Error::add_error(
203
+				esc_html__('Your PayPal credentials could not be verified. Part of their response was missing.', 'event_espresso'),
204
+				__FILE__,
205
+				__FUNCTION__,
206
+				__LINE__
207
+			);
208
+		}
209
+		if (in_array(
210
+			$response_args['ACK'],
211
+			array(
212
+				'Success',
213
+				'SuccessWithWarning'
214
+			),
215
+			true
216
+		)
217
+		) {
218
+			return '';
219
+		} else {
220
+			return sprintf(
221
+				esc_html__('Your PayPal API credentials appear to be invalid. PayPal said "%1$s (%2$s)". Please see tips below.', 'event_espresso'),
222
+				isset($response_args['L_LONGMESSAGE0']) ? $response_args['L_LONGMESSAGE0'] : esc_html__('No error message received from PayPal', 'event_espresso'),
223
+				isset($response_args['L_ERRORCODE0']) ? $response_args['L_ERRORCODE0'] : 0
224
+			);
225
+		}
226
+	}
227 227
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@
 block discarded – undo
111 111
     public function _validate()
112 112
     {
113 113
         parent::_validate();
114
-        if (! $this->_payment_method_type instanceof \EE_PMT_Paypal_Express) {
114
+        if ( ! $this->_payment_method_type instanceof \EE_PMT_Paypal_Express) {
115 115
             throw new EntityNotFoundException('EE_PMT_Paypal_Express', '$this->_payment_method_type');
116 116
         }
117
-        if (! $this->_payment_method_type->get_gateway() instanceof \EEG_Paypal_Express) {
117
+        if ( ! $this->_payment_method_type->get_gateway() instanceof \EEG_Paypal_Express) {
118 118
             throw new EntityNotFoundException('EEG_Paypal_Express', '$this->_payment_method_type->get_gateway()');
119 119
         }
120 120
         $credentials_message = $this->checkForCredentialsErrors();
Please login to merge, or discard this patch.
payment_methods/Paypal_Express/EE_PMT_Paypal_Express.pm.php 2 patches
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -15,90 +15,90 @@
 block discarded – undo
15 15
 class EE_PMT_Paypal_Express extends EE_PMT_Base
16 16
 {
17 17
 
18
-    /**
19
-     * EE_PMT_Paypal_Express constructor.
20
-     */
21
-    public function __construct($pm_instance = null)
22
-    {
23
-        require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
24
-        $this->_gateway = new EEG_Paypal_Express();
18
+	/**
19
+	 * EE_PMT_Paypal_Express constructor.
20
+	 */
21
+	public function __construct($pm_instance = null)
22
+	{
23
+		require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
24
+		$this->_gateway = new EEG_Paypal_Express();
25 25
 
26
-        $this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
-        $this->_template_path = $this->file_folder() . 'templates' . DS;
28
-        $this->_default_description = esc_html__(
29
-            // @codingStandardsIgnoreStart
30
-            'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31
-            // @codingStandardsIgnoreEnd
32
-            'event_espresso'
33
-        );
34
-        $this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
26
+		$this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
+		$this->_template_path = $this->file_folder() . 'templates' . DS;
28
+		$this->_default_description = esc_html__(
29
+			// @codingStandardsIgnoreStart
30
+			'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31
+			// @codingStandardsIgnoreEnd
32
+			'event_espresso'
33
+		);
34
+		$this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
35 35
 
36
-        parent::__construct($pm_instance);
37
-    }
36
+		parent::__construct($pm_instance);
37
+	}
38 38
 
39 39
 
40
-    /**
41
-     * Adds the help tab.
42
-     *
43
-     * @see EE_PMT_Base::help_tabs_config()
44
-     * @return array
45
-     */
46
-    public function help_tabs_config()
47
-    {
48
-        return array(
49
-            $this->get_help_tab_name() => array(
50
-                'title'    => esc_html__('PayPal Express Settings', 'event_espresso'),
51
-                'filename' => 'payment_methods_overview_paypal_express'
52
-            )
53
-        );
54
-    }
40
+	/**
41
+	 * Adds the help tab.
42
+	 *
43
+	 * @see EE_PMT_Base::help_tabs_config()
44
+	 * @return array
45
+	 */
46
+	public function help_tabs_config()
47
+	{
48
+		return array(
49
+			$this->get_help_tab_name() => array(
50
+				'title'    => esc_html__('PayPal Express Settings', 'event_espresso'),
51
+				'filename' => 'payment_methods_overview_paypal_express'
52
+			)
53
+		);
54
+	}
55 55
 
56 56
 
57
-    /**
58
-     * Gets the form for all the settings related to this payment method type.
59
-     *
60
-     * @return EE_Payment_Method_Form
61
-     */
62
-    public function generate_new_settings_form()
63
-    {
64
-        $form = new SettingsForm(array(), $this->get_help_tab_link());
65
-        return $form;
66
-    }
57
+	/**
58
+	 * Gets the form for all the settings related to this payment method type.
59
+	 *
60
+	 * @return EE_Payment_Method_Form
61
+	 */
62
+	public function generate_new_settings_form()
63
+	{
64
+		$form = new SettingsForm(array(), $this->get_help_tab_link());
65
+		return $form;
66
+	}
67 67
 
68 68
 
69
-    /**
70
-     * Creates a billing form for this payment method type.
71
-     *
72
-     * @param \EE_Transaction $transaction
73
-     * @return \EE_Billing_Info_Form
74
-     */
75
-    public function generate_new_billing_form(EE_Transaction $transaction = null)
76
-    {
77
-        if ($this->_pm_instance->debug_mode()) {
78
-            $form = new EE_Billing_Info_Form(
79
-                $this->_pm_instance,
80
-                array(
81
-                    'name' => 'paypal_express_Info_Form',
82
-                    'subsections' => array(
83
-                        'paypal_express_debug_info' => new EE_Form_Section_Proper(
84
-                            array(
85
-                                'layout_strategy' => new EE_Template_Layout(
86
-                                    array(
87
-                                        'layout_template_file' => $this->_template_path
88
-                                                                    . 'paypal_express_debug_info.template.php',
89
-                                        'template_args'        => array(
90
-                                            'debug_mode' => $this->_pm_instance->debug_mode()
91
-                                        )
92
-                                    )
93
-                                )
94
-                            )
95
-                        )
96
-                    )
97
-                )
98
-            );
99
-            return $form;
100
-        }
69
+	/**
70
+	 * Creates a billing form for this payment method type.
71
+	 *
72
+	 * @param \EE_Transaction $transaction
73
+	 * @return \EE_Billing_Info_Form
74
+	 */
75
+	public function generate_new_billing_form(EE_Transaction $transaction = null)
76
+	{
77
+		if ($this->_pm_instance->debug_mode()) {
78
+			$form = new EE_Billing_Info_Form(
79
+				$this->_pm_instance,
80
+				array(
81
+					'name' => 'paypal_express_Info_Form',
82
+					'subsections' => array(
83
+						'paypal_express_debug_info' => new EE_Form_Section_Proper(
84
+							array(
85
+								'layout_strategy' => new EE_Template_Layout(
86
+									array(
87
+										'layout_template_file' => $this->_template_path
88
+																	. 'paypal_express_debug_info.template.php',
89
+										'template_args'        => array(
90
+											'debug_mode' => $this->_pm_instance->debug_mode()
91
+										)
92
+									)
93
+								)
94
+							)
95
+						)
96
+					)
97
+				)
98
+			);
99
+			return $form;
100
+		}
101 101
 
102
-        return false;
103
-    }
102
+		return false;
103
+	}
104 104
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($pm_instance = null)
22 22
     {
23
-        require_once($this->file_folder() . 'EEG_Paypal_Express.gateway.php');
23
+        require_once($this->file_folder().'EEG_Paypal_Express.gateway.php');
24 24
         $this->_gateway = new EEG_Paypal_Express();
25 25
 
26 26
         $this->_pretty_name = esc_html__('PayPal Express', 'event_espresso');
27
-        $this->_template_path = $this->file_folder() . 'templates' . DS;
27
+        $this->_template_path = $this->file_folder().'templates'.DS;
28 28
         $this->_default_description = esc_html__(
29 29
             // @codingStandardsIgnoreStart
30 30
             'After clicking \'Finalize Registration\', you will be forwarded to PayPal website to Login and make your payment.',
31 31
             // @codingStandardsIgnoreEnd
32 32
             'event_espresso'
33 33
         );
34
-        $this->_default_button_url = $this->file_url() . 'lib' . DS . 'paypal-express-checkout-logo-gold-160.png';
34
+        $this->_default_button_url = $this->file_url().'lib'.DS.'paypal-express-checkout-logo-gold-160.png';
35 35
 
36 36
         parent::__construct($pm_instance);
37 37
     }
Please login to merge, or discard this patch.
payment_methods/Paypal_Express/templates/paypal_express_intro.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php printf(
2
-    __(
3
-        'PayPal Express (Express Checkout) is an off-site payment method for accepting payments via PayPal and is available to event organizers in many countries. A PayPal premier or business account is needed to accept payments. Need a PayPal account? Call 1-855-456-1338 or %1$sclick here to sign up for a merchant account%2$s.',
4
-        'event_espresso'
5
-    ),
6
-    '<a href="https://eventespresso.com/go/paypalexpress/" target="_blank">',
7
-    '</a>'
2
+	__(
3
+		'PayPal Express (Express Checkout) is an off-site payment method for accepting payments via PayPal and is available to event organizers in many countries. A PayPal premier or business account is needed to accept payments. Need a PayPal account? Call 1-855-456-1338 or %1$sclick here to sign up for a merchant account%2$s.',
4
+		'event_espresso'
5
+	),
6
+	'<a href="https://eventespresso.com/go/paypalexpress/" target="_blank">',
7
+	'</a>'
8 8
 );
Please login to merge, or discard this patch.
Paypal_Express/templates/paypal_express_debug_info.template.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
     <h4 class="important-notice">
4 4
         <?php _e(
5
-            'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
-            'event_espresso'
7
-        ); ?></h4>
5
+			'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
+			'event_espresso'
7
+		); ?></h4>
8 8
 
9 9
     <h4><?php _e('How do I test specific error codes?', 'event_espresso'); ?></h4>
10 10
     <p>
11 11
         <?php _e(
12
-            'To trigger an error condition on an amount-related field, 
12
+			'To trigger an error condition on an amount-related field, 
13 13
 			specify a error code value as a number with two digits to the right of the decimal point. 
14 14
 			For example, specify a value of 107.55 to trigger the 10755 error.',
15
-            'event_espresso'
16
-        ); ?>
15
+			'event_espresso'
16
+		); ?>
17 17
     </p>
18 18
     <p>
19 19
         <?php printf(
20
-            __('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
-            '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
-            '</a>'
23
-        ); ?>
20
+			__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
+			'<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
+			'</a>'
23
+		); ?>
24 24
     </p>
25 25
 
26 26
 </div>
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
Invoice/templates/invoice_settings_header_display.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
         <td>
16 16
             <span class="description">
17 17
                 <?php _e(
18
-                    "The following settings affect the content and/or appearance of the downloadable PDF invoice.",
19
-                    'event_espresso'
20
-                ); ?></span>
18
+					"The following settings affect the content and/or appearance of the downloadable PDF invoice.",
19
+					'event_espresso'
20
+				); ?></span>
21 21
         </td>
22 22
     </tr>
Please login to merge, or discard this patch.
payment_methods/Invoice/templates/invoice_intro.template.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php esc_html_e(
2
-    'Invoice is an offline payment method for accepting payments. Payments are processed manually by providing your registrants/attendees with information on how to pay their invoice.',
3
-    'event_espresso'
2
+	'Invoice is an offline payment method for accepting payments. Payments are processed manually by providing your registrants/attendees with information on how to pay their invoice.',
3
+	'event_espresso'
4 4
 );
Please login to merge, or discard this patch.
Invoice/templates/invoice_settings_header_gateway.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
         <td>
16 16
             <span class="description">
17 17
                 <?php _e(
18
-                    "The following settings affect the functioning of the Invoice gateway.",
19
-                    'event_espresso'
20
-                ); ?></span>
18
+					"The following settings affect the functioning of the Invoice gateway.",
19
+					'event_espresso'
20
+				); ?></span>
21 21
         </td>
22 22
     </tr>
Please login to merge, or discard this patch.
Invoice/templates/invoice_payment_details_content.template.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
     <div class="event-display-boxes">
14 14
 <?php
15 15
 if (! empty($page_title)) {
16
-    echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17
-         . stripslashes_deep(
18
-             $page_title
19
-         ) . '</h4>';
16
+	echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17
+		 . stripslashes_deep(
18
+			 $page_title
19
+		 ) . '</h4>';
20 20
 }
21 21
 if (! empty($invoice_url)) {
22
-    ?>
22
+	?>
23 23
     <p>
24 24
         <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank">
25 25
             <?php _e('View Invoice', 'event_espresso'); ?>
@@ -27,21 +27,21 @@  discard block
 block discarded – undo
27 27
     </p>
28 28
     <?php
29 29
 
30
-    if (isset($page_confirmation_text)) {
31
-        echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32
-             . stripslashes_deep(
33
-                 $page_confirmation_text
34
-             ) . '</p></div>';
35
-    }
30
+	if (isset($page_confirmation_text)) {
31
+		echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32
+			 . stripslashes_deep(
33
+				 $page_confirmation_text
34
+			 ) . '</p></div>';
35
+	}
36 36
 
37
-    if (! empty($page_extra_info)) {
38
-        ?>
37
+	if (! empty($page_extra_info)) {
38
+		?>
39 39
         <div class="address-block">
40 40
             <?php echo wpautop(stripslashes_deep($page_extra_info)); ?>
41 41
         </div>
42 42
         <?php
43
-    }
44
-    ?>
43
+	}
44
+	?>
45 45
     </div>
46 46
     <?php
47 47
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@  discard block
 block discarded – undo
12 12
 ?>
13 13
     <div class="event-display-boxes">
14 14
 <?php
15
-if (! empty($page_title)) {
15
+if ( ! empty($page_title)) {
16 16
     echo '<h4 id="invoice_title" class="payment_type_title section-heading">'
17 17
          . stripslashes_deep(
18 18
              $page_title
19
-         ) . '</h4>';
19
+         ).'</h4>';
20 20
 }
21
-if (! empty($invoice_url)) {
21
+if ( ! empty($invoice_url)) {
22 22
     ?>
23 23
     <p>
24 24
         <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank">
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
         echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">'
32 32
              . stripslashes_deep(
33 33
                  $page_confirmation_text
34
-             ) . '</p></div>';
34
+             ).'</p></div>';
35 35
     }
36 36
 
37
-    if (! empty($page_extra_info)) {
37
+    if ( ! empty($page_extra_info)) {
38 38
         ?>
39 39
         <div class="address-block">
40 40
             <?php echo wpautop(stripslashes_deep($page_extra_info)); ?>
Please login to merge, or discard this patch.
payment_methods/Invoice/EE_PMT_Invoice.pm.php 2 patches
Indentation   +120 added lines, -120 removed lines patch added patch discarded remove patch
@@ -27,136 +27,136 @@
 block discarded – undo
27 27
 
28 28
 
29 29
 
30
-    /**
31
-     *
32
-     * @param EE_Payment_Method $pm_instance
33
-     * @return EE_PMT_Invoice
34
-     */
35
-    public function __construct($pm_instance = null)
36
-    {
37
-        $this->_pretty_name = esc_html__("Invoice", 'event_espresso');
38
-        $this->_default_description = sprintf(
39
-            esc_html__('After clicking "Finalize Registration", you will be given instructions on how to access your invoice and complete your payment.%sPlease note that event spaces will not be reserved until payment is received in full, and any remaining tickets could be sold to others in the meantime.', 'event_espresso'),
40
-            '<br />'
41
-        );
42
-        parent::__construct($pm_instance);
43
-        $this->_default_button_url = $this->file_url().'lib'.DS.'invoice-logo.png';
44
-    }
30
+	/**
31
+	 *
32
+	 * @param EE_Payment_Method $pm_instance
33
+	 * @return EE_PMT_Invoice
34
+	 */
35
+	public function __construct($pm_instance = null)
36
+	{
37
+		$this->_pretty_name = esc_html__("Invoice", 'event_espresso');
38
+		$this->_default_description = sprintf(
39
+			esc_html__('After clicking "Finalize Registration", you will be given instructions on how to access your invoice and complete your payment.%sPlease note that event spaces will not be reserved until payment is received in full, and any remaining tickets could be sold to others in the meantime.', 'event_espresso'),
40
+			'<br />'
41
+		);
42
+		parent::__construct($pm_instance);
43
+		$this->_default_button_url = $this->file_url().'lib'.DS.'invoice-logo.png';
44
+	}
45 45
 
46 46
 
47 47
 
48
-    /**
49
-     * Creates the billing form for this payment method type
50
-     * @param \EE_Transaction $transaction
51
-     * @return NULL
52
-     */
53
-    public function generate_new_billing_form(EE_Transaction $transaction = null)
54
-    {
55
-        return null;
56
-    }
48
+	/**
49
+	 * Creates the billing form for this payment method type
50
+	 * @param \EE_Transaction $transaction
51
+	 * @return NULL
52
+	 */
53
+	public function generate_new_billing_form(EE_Transaction $transaction = null)
54
+	{
55
+		return null;
56
+	}
57 57
 
58 58
 
59 59
 
60
-    /**
61
-     * Gets the form for all the settings related to this payment method type
62
-     * @return EE_Payment_Method_Form
63
-     */
64
-    public function generate_new_settings_form()
65
-    {
66
-        $pdf_payee_input_name = 'pdf_payee_name';
67
-        $confirmation_text_input_name = 'page_confirmation_text';
68
-        $form =  new EE_Payment_Method_Form(array(
60
+	/**
61
+	 * Gets the form for all the settings related to this payment method type
62
+	 * @return EE_Payment_Method_Form
63
+	 */
64
+	public function generate_new_settings_form()
65
+	{
66
+		$pdf_payee_input_name = 'pdf_payee_name';
67
+		$confirmation_text_input_name = 'page_confirmation_text';
68
+		$form =  new EE_Payment_Method_Form(array(
69 69
 //              'payment_method_type' => $this,
70
-                'extra_meta_inputs'=>array(
71
-                    $pdf_payee_input_name => new EE_Text_Input(array(
72
-                        'html_label_text' => sprintf(esc_html__('Payee Name %s', 'event_espresso'), $this->get_help_tab_link())
73
-                    )),
74
-                    'pdf_payee_email' => new EE_Email_Input(array(
75
-                        'html_label_text' => sprintf(esc_html__('Payee Email %s', 'event_espresso'), $this->get_help_tab_link()),
76
-                    )),
77
-                    'pdf_payee_tax_number' => new EE_Text_Input(array(
78
-                        'html_label_text' => sprintf(esc_html__('Payee Tax Number %s', 'event_espresso'), $this->get_help_tab_link()),
79
-                        )),
80
-                    'pdf_payee_address' => new EE_Text_Area_Input(array(
81
-                        'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
83
-                    )),
84
-                    'pdf_instructions'=>new EE_Text_Area_Input(array(
85
-                        'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86
-                        'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
88
-                    )),
89
-                    'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90
-                        'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
91
-                        'default'=>  EE_Config::instance()->organization->logo_url,
92
-                        'html_help_text'=>  esc_html__("(Logo for the top left of the invoice)", 'event_espresso'),
93
-                    )),
94
-                    $confirmation_text_input_name =>new EE_Text_Area_Input(array(
95
-                        'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96
-                        'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
98
-                    )),
99
-                    'page_extra_info'=>new EE_Text_Area_Input(array(
100
-                        'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
102
-                    )),
103
-                ),
104
-                'include'=>array(
105
-                    'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
-                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
107
-                    $confirmation_text_input_name, 'page_extra_info'),
108
-            ));
109
-        $form->add_subsections(
110
-            array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111
-            $pdf_payee_input_name
112
-        );
113
-        $form->add_subsections(
114
-            array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115
-            $confirmation_text_input_name
116
-        );
117
-        return $form;
118
-    }
70
+				'extra_meta_inputs'=>array(
71
+					$pdf_payee_input_name => new EE_Text_Input(array(
72
+						'html_label_text' => sprintf(esc_html__('Payee Name %s', 'event_espresso'), $this->get_help_tab_link())
73
+					)),
74
+					'pdf_payee_email' => new EE_Email_Input(array(
75
+						'html_label_text' => sprintf(esc_html__('Payee Email %s', 'event_espresso'), $this->get_help_tab_link()),
76
+					)),
77
+					'pdf_payee_tax_number' => new EE_Text_Input(array(
78
+						'html_label_text' => sprintf(esc_html__('Payee Tax Number %s', 'event_espresso'), $this->get_help_tab_link()),
79
+						)),
80
+					'pdf_payee_address' => new EE_Text_Area_Input(array(
81
+						'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
83
+					)),
84
+					'pdf_instructions'=>new EE_Text_Area_Input(array(
85
+						'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86
+						'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
88
+					)),
89
+					'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90
+						'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
91
+						'default'=>  EE_Config::instance()->organization->logo_url,
92
+						'html_help_text'=>  esc_html__("(Logo for the top left of the invoice)", 'event_espresso'),
93
+					)),
94
+					$confirmation_text_input_name =>new EE_Text_Area_Input(array(
95
+						'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96
+						'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
98
+					)),
99
+					'page_extra_info'=>new EE_Text_Area_Input(array(
100
+						'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
+						'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
102
+					)),
103
+				),
104
+				'include'=>array(
105
+					'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
+					$pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
107
+					$confirmation_text_input_name, 'page_extra_info'),
108
+			));
109
+		$form->add_subsections(
110
+			array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111
+			$pdf_payee_input_name
112
+		);
113
+		$form->add_subsections(
114
+			array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115
+			$confirmation_text_input_name
116
+		);
117
+		return $form;
118
+	}
119 119
 
120 120
 
121 121
 
122
-    /**
123
-     * Adds the help tab
124
-     * @see EE_PMT_Base::help_tabs_config()
125
-     * @return array
126
-     */
127
-    public function help_tabs_config()
128
-    {
129
-        return array(
130
-            $this->get_help_tab_name() => array(
131
-                'title' => esc_html__('Invoice Settings', 'event_espresso'),
132
-                'filename' => 'payment_methods_overview_invoice'
133
-            ),
134
-        );
135
-    }
122
+	/**
123
+	 * Adds the help tab
124
+	 * @see EE_PMT_Base::help_tabs_config()
125
+	 * @return array
126
+	 */
127
+	public function help_tabs_config()
128
+	{
129
+		return array(
130
+			$this->get_help_tab_name() => array(
131
+				'title' => esc_html__('Invoice Settings', 'event_espresso'),
132
+				'filename' => 'payment_methods_overview_invoice'
133
+			),
134
+		);
135
+	}
136 136
 
137 137
 
138
-    /**
139
-     * For adding any html output above the payment overview.
140
-     * Many gateways won't want ot display anything, so this function just returns an empty string.
141
-     * Other gateways may want to override this, such as offline gateways.
142
-     *
143
-     * @param \EE_Payment $payment
144
-     * @return string
145
-     */
146
-    public function payment_overview_content(EE_Payment $payment)
147
-    {
148
-        return EEH_Template::locate_template(
149
-            'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
150
-            array_merge(
151
-                array(
152
-                    'payment_method'            => $this->_pm_instance,
153
-                    'payment'                       => $payment,
154
-                    'page_confirmation_text'                    => '',
155
-                    'page_extra_info'   => '',
156
-                    'invoice_url'                   => $payment->transaction()->primary_registration()->invoice_url('html')
157
-                ),
158
-                $this->_pm_instance->all_extra_meta_array()
159
-            )
160
-        );
161
-    }
138
+	/**
139
+	 * For adding any html output above the payment overview.
140
+	 * Many gateways won't want ot display anything, so this function just returns an empty string.
141
+	 * Other gateways may want to override this, such as offline gateways.
142
+	 *
143
+	 * @param \EE_Payment $payment
144
+	 * @return string
145
+	 */
146
+	public function payment_overview_content(EE_Payment $payment)
147
+	{
148
+		return EEH_Template::locate_template(
149
+			'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
150
+			array_merge(
151
+				array(
152
+					'payment_method'            => $this->_pm_instance,
153
+					'payment'                       => $payment,
154
+					'page_confirmation_text'                    => '',
155
+					'page_extra_info'   => '',
156
+					'invoice_url'                   => $payment->transaction()->primary_registration()->invoice_url('html')
157
+				),
158
+				$this->_pm_instance->all_extra_meta_array()
159
+			)
160
+		);
161
+	}
162 162
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $pdf_payee_input_name = 'pdf_payee_name';
67 67
         $confirmation_text_input_name = 'page_confirmation_text';
68
-        $form =  new EE_Payment_Method_Form(array(
68
+        $form = new EE_Payment_Method_Form(array(
69 69
 //              'payment_method_type' => $this,
70 70
                 'extra_meta_inputs'=>array(
71 71
                     $pdf_payee_input_name => new EE_Text_Input(array(
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
                         )),
80 80
                     'pdf_payee_address' => new EE_Text_Area_Input(array(
81 81
                         'html_label_text' => sprintf(esc_html__('Payee Address %s', 'event_espresso'), $this->get_help_tab_link()),
82
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
82
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
83 83
                     )),
84 84
                     'pdf_instructions'=>new EE_Text_Area_Input(array(
85 85
                         'html_label_text'=>  sprintf(esc_html__("Instructions %s", "event_espresso"), $this->get_help_tab_link()),
86 86
                         'default'=>  esc_html__("Please send this invoice with payment attached to the address above, or use the payment link below. Payment must be received within 48 hours of event date.", 'event_espresso'),
87
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
87
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
88 88
                     )),
89 89
                     'pdf_logo_image'=>new EE_Admin_File_Uploader_Input(array(
90 90
                         'html_label_text'=>  sprintf(esc_html__("Logo Image %s", "event_espresso"), $this->get_help_tab_link()),
@@ -94,24 +94,24 @@  discard block
 block discarded – undo
94 94
                     $confirmation_text_input_name =>new EE_Text_Area_Input(array(
95 95
                         'html_label_text'=>  sprintf(esc_html__("Confirmation Text %s", "event_espresso"), $this->get_help_tab_link()),
96 96
                         'default'=>  esc_html__("Payment must be received within 48 hours of event date. Details about where to send the payment are included on the invoice.", 'event_espresso'),
97
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
97
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
98 98
                     )),
99 99
                     'page_extra_info'=>new EE_Text_Area_Input(array(
100 100
                         'html_label_text'=>  sprintf(esc_html__("Extra Info %s", "event_espresso"), $this->get_help_tab_link()),
101
-                        'validation_strategies' => array( new EE_Full_HTML_Validation_Strategy() ),
101
+                        'validation_strategies' => array(new EE_Full_HTML_Validation_Strategy()),
102 102
                     )),
103 103
                 ),
104 104
                 'include'=>array(
105
-                    'PMD_ID', 'PMD_name','PMD_desc','PMD_admin_name','PMD_admin_desc', 'PMD_type','PMD_slug', 'PMD_open_by_default','PMD_button_url','PMD_scope','Currency','PMD_order',
106
-                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions','pdf_logo_image',
105
+                    'PMD_ID', 'PMD_name', 'PMD_desc', 'PMD_admin_name', 'PMD_admin_desc', 'PMD_type', 'PMD_slug', 'PMD_open_by_default', 'PMD_button_url', 'PMD_scope', 'Currency', 'PMD_order',
106
+                    $pdf_payee_input_name, 'pdf_payee_email', 'pdf_payee_tax_number', 'pdf_payee_address', 'pdf_instructions', 'pdf_logo_image',
107 107
                     $confirmation_text_input_name, 'page_extra_info'),
108 108
             ));
109 109
         $form->add_subsections(
110
-            array( 'header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
110
+            array('header1' => new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_display.template.php')),
111 111
             $pdf_payee_input_name
112 112
         );
113 113
         $form->add_subsections(
114
-            array( 'header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
114
+            array('header2'=>new EE_Form_Section_HTML_From_Template('payment_methods/Invoice/templates/invoice_settings_header_gateway.template.php')),
115 115
             $confirmation_text_input_name
116 116
         );
117 117
         return $form;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function payment_overview_content(EE_Payment $payment)
147 147
     {
148 148
         return EEH_Template::locate_template(
149
-            'payment_methods' . DS . 'Invoice'. DS . 'templates'.DS.'invoice_payment_details_content.template.php',
149
+            'payment_methods'.DS.'Invoice'.DS.'templates'.DS.'invoice_payment_details_content.template.php',
150 150
             array_merge(
151 151
                 array(
152 152
                     'payment_method'            => $this->_pm_instance,
Please login to merge, or discard this patch.