Completed
Push — develop ( 8a861b...6459a3 )
by Remco
04:56
created
admin/meta-box-payment-info.php 1 patch
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -15,74 +15,74 @@  discard block
 block discarded – undo
15 15
 
16 16
 $post_type = 'pronamic_payment';
17 17
 
18
-$payment = get_pronamic_payment( $post_id );
18
+$payment = get_pronamic_payment($post_id);
19 19
 
20 20
 ?>
21 21
 <table class="form-table">
22 22
 	<tr>
23 23
 		<th scope="row">
24
-			<?php esc_html_e( 'Date', 'pronamic_ideal' ); ?>
24
+			<?php esc_html_e('Date', 'pronamic_ideal'); ?>
25 25
 		</th>
26 26
 		<td>
27
-			<?php the_time( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ) ); ?>
27
+			<?php the_time(__('l jS \o\f F Y, h:ia', 'pronamic_ideal')); ?>
28 28
 		</td>
29 29
 	</tr>
30 30
 	<tr>
31 31
 		<th scope="row">
32
-			<?php esc_html_e( 'ID', 'pronamic_ideal' ); ?>
32
+			<?php esc_html_e('ID', 'pronamic_ideal'); ?>
33 33
 		</th>
34 34
 		<td>
35
-			<?php echo esc_html( $post_id ); ?>
35
+			<?php echo esc_html($post_id); ?>
36 36
 		</td>
37 37
 	</tr>
38 38
 	<tr>
39 39
 		<th scope="row">
40
-			<?php esc_html_e( 'Description', 'pronamic_ideal' ); ?>
40
+			<?php esc_html_e('Description', 'pronamic_ideal'); ?>
41 41
 		</th>
42 42
 		<td>
43
-			<?php echo esc_html( get_post_meta( $post_id, '_pronamic_payment_description', true ) ); ?>
43
+			<?php echo esc_html(get_post_meta($post_id, '_pronamic_payment_description', true)); ?>
44 44
 		</td>
45 45
 	</tr>
46 46
 	<tr>
47 47
 		<th scope="row">
48
-			<?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?>
48
+			<?php esc_html_e('Amount', 'pronamic_ideal'); ?>
49 49
 		</th>
50 50
 		<td>
51 51
 			<?php
52 52
 
53
-			$currency = get_post_meta( $post_id, '_pronamic_payment_currency', true );
54
-			$amount   = get_post_meta( $post_id, '_pronamic_payment_amount', true );
53
+			$currency = get_post_meta($post_id, '_pronamic_payment_currency', true);
54
+			$amount   = get_post_meta($post_id, '_pronamic_payment_amount', true);
55 55
 
56
-			echo esc_html( Util::format_price( $amount, $currency ) );
56
+			echo esc_html(Util::format_price($amount, $currency));
57 57
 
58 58
 			?>
59 59
 		</td>
60 60
 	</tr>
61 61
 	<tr>
62 62
 		<th scope="row">
63
-			<?php esc_html_e( 'Transaction ID', 'pronamic_ideal' ); ?>
63
+			<?php esc_html_e('Transaction ID', 'pronamic_ideal'); ?>
64 64
 		</th>
65 65
 		<td>
66
-			<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $post_id ); ?>
66
+			<?php do_action('manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $post_id); ?>
67 67
 		</td>
68 68
 	</tr>
69 69
 	<tr>
70 70
 		<th scope="row">
71
-			<?php esc_html_e( 'Payment Method', 'pronamic_ideal' ); ?>
71
+			<?php esc_html_e('Payment Method', 'pronamic_ideal'); ?>
72 72
 		</th>
73 73
 		<td>
74 74
 			<?php
75 75
 
76
-			$method = $payment->get_meta( 'method' );
76
+			$method = $payment->get_meta('method');
77 77
 
78
-			$name = PaymentMethods::get_name( $method );
78
+			$name = PaymentMethods::get_name($method);
79 79
 
80
-			echo esc_html( $name );
80
+			echo esc_html($name);
81 81
 
82
-			$issuer = $payment->get_meta( 'issuer' );
82
+			$issuer = $payment->get_meta('issuer');
83 83
 
84
-			if ( $issuer ) {
85
-				echo esc_html( sprintf( ' (`%s`)', $issuer ) );
84
+			if ($issuer) {
85
+				echo esc_html(sprintf(' (`%s`)', $issuer));
86 86
 			}
87 87
 
88 88
 			?>
@@ -90,17 +90,17 @@  discard block
 block discarded – undo
90 90
 	</tr>
91 91
 	<tr>
92 92
 		<th scope="row">
93
-			<?php esc_html_e( 'Action URL', 'pronamic_ideal' ); ?>
93
+			<?php esc_html_e('Action URL', 'pronamic_ideal'); ?>
94 94
 		</th>
95 95
 		<td>
96 96
 			<?php
97 97
 
98
-			$url = get_post_meta( $post_id, '_pronamic_payment_action_url', true );
98
+			$url = get_post_meta($post_id, '_pronamic_payment_action_url', true);
99 99
 
100 100
 			printf(
101 101
 				'<a href="%s" target="_blank">%s</a>',
102
-				esc_attr( $url ),
103
-				esc_html( $url )
102
+				esc_attr($url),
103
+				esc_html($url)
104 104
 			);
105 105
 
106 106
 			?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	</tr>
109 109
 	<tr>
110 110
 		<th scope="row">
111
-			<?php esc_html_e( 'Return URL', 'pronamic_ideal' ); ?>
111
+			<?php esc_html_e('Return URL', 'pronamic_ideal'); ?>
112 112
 		</th>
113 113
 		<td>
114 114
 			<?php
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
 
118 118
 			printf(
119 119
 				'<a href="%s">%s</a>',
120
-				esc_attr( $url ),
121
-				esc_html( $url )
120
+				esc_attr($url),
121
+				esc_html($url)
122 122
 			);
123 123
 
124 124
 			?>
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	</tr>
127 127
 	<tr>
128 128
 		<th scope="row">
129
-			<?php esc_html_e( 'Redirect URL', 'pronamic_ideal' ); ?>
129
+			<?php esc_html_e('Redirect URL', 'pronamic_ideal'); ?>
130 130
 		</th>
131 131
 		<td>
132 132
 			<?php
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
 
136 136
 			printf(
137 137
 				'<a href="%s">%s</a>',
138
-				esc_attr( $url ),
139
-				esc_html( $url )
138
+				esc_attr($url),
139
+				esc_html($url)
140 140
 			);
141 141
 
142 142
 			?>
@@ -144,15 +144,15 @@  discard block
 block discarded – undo
144 144
 	</tr>
145 145
 	<tr>
146 146
 		<th scope="row">
147
-			<?php esc_html_e( 'Status', 'pronamic_ideal' ); ?>
147
+			<?php esc_html_e('Status', 'pronamic_ideal'); ?>
148 148
 		</th>
149 149
 		<td>
150 150
 			<?php
151 151
 
152
-			$status_object = get_post_status_object( get_post_status( $post_id ) );
152
+			$status_object = get_post_status_object(get_post_status($post_id));
153 153
 
154
-			if ( isset( $status_object, $status_object->label ) ) {
155
-				echo esc_html( $status_object->label );
154
+			if (isset($status_object, $status_object->label)) {
155
+				echo esc_html($status_object->label);
156 156
 			} else {
157 157
 				echo '—';
158 158
 			}
@@ -162,61 +162,61 @@  discard block
 block discarded – undo
162 162
 	</tr>
163 163
 	<tr>
164 164
 		<th scope="row">
165
-			<?php esc_html_e( 'First Name', 'pronamic_ideal' ); ?>
165
+			<?php esc_html_e('First Name', 'pronamic_ideal'); ?>
166 166
 		</th>
167 167
 		<td>
168 168
 			<?php
169 169
 
170
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_first_name', true ) );
170
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_first_name', true));
171 171
 
172 172
 			?>
173 173
 		</td>
174 174
 	</tr>
175 175
 	<tr>
176 176
 		<th scope="row">
177
-			<?php esc_html_e( 'Last Name', 'pronamic_ideal' ); ?>
177
+			<?php esc_html_e('Last Name', 'pronamic_ideal'); ?>
178 178
 		</th>
179 179
 		<td>
180 180
 			<?php
181 181
 
182
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_last_name', true ) );
182
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_last_name', true));
183 183
 
184 184
 			?>
185 185
 		</td>
186 186
 	</tr>
187 187
 	<tr>
188 188
 		<th scope="row">
189
-			<?php esc_html_e( 'Email', 'pronamic_ideal' ); ?>
189
+			<?php esc_html_e('Email', 'pronamic_ideal'); ?>
190 190
 		</th>
191 191
 		<td>
192 192
 			<?php
193 193
 
194
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_email', true ) );
194
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_email', true));
195 195
 
196 196
 			?>
197 197
 		</td>
198 198
 	</tr>
199 199
 	<tr>
200 200
 		<th scope="row">
201
-			<?php esc_html_e( 'Consumer', 'pronamic_ideal' ); ?>
201
+			<?php esc_html_e('Consumer', 'pronamic_ideal'); ?>
202 202
 		</th>
203 203
 		<td>
204 204
 			<?php
205 205
 
206
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_consumer_name', true ) );
206
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_consumer_name', true));
207 207
 			echo '<br />';
208
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_consumer_account_number', true ) );
209
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_consumer_iban', true ) );
210
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_consumer_bic', true ) );
208
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_consumer_account_number', true));
209
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_consumer_iban', true));
210
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_consumer_bic', true));
211 211
 			echo '<br />';
212
-			echo esc_html( get_post_meta( $post_id, '_pronamic_payment_consumer_city', true ) );
212
+			echo esc_html(get_post_meta($post_id, '_pronamic_payment_consumer_city', true));
213 213
 
214 214
 			?>
215 215
 		</td>
216 216
 	</tr>
217 217
 	<tr>
218 218
 		<th scope="row">
219
-			<?php esc_html_e( 'Source', 'pronamic_ideal' ); ?>
219
+			<?php esc_html_e('Source', 'pronamic_ideal'); ?>
220 220
 		</th>
221 221
 		<td>
222 222
 			<?php
@@ -227,64 +227,64 @@  discard block
 block discarded – undo
227 227
 		</td>
228 228
 	</tr>
229 229
 
230
-	<?php if ( 's2member' === $payment->get_source() ) : ?>
230
+	<?php if ('s2member' === $payment->get_source()) : ?>
231 231
 
232 232
 		<tr>
233 233
 			<th scope="row">
234
-				<?php esc_html_e( 'Period', 'pronamic_ideal' ); ?>
234
+				<?php esc_html_e('Period', 'pronamic_ideal'); ?>
235 235
 			</th>
236 236
 			<td>
237
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_s2member_period', true ) ); ?>
237
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_s2member_period', true)); ?>
238 238
 			</td>
239 239
 		</tr>
240 240
 		<tr>
241 241
 			<th scope="row">
242
-				<?php esc_html_e( 'Level', 'pronamic_ideal' ); ?>
242
+				<?php esc_html_e('Level', 'pronamic_ideal'); ?>
243 243
 			</th>
244 244
 			<td>
245
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_s2member_level', true ) ); ?>
245
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_s2member_level', true)); ?>
246 246
 			</td>
247 247
 		</tr>
248 248
 
249 249
 	<?php endif; ?>
250 250
 
251
-	<?php if ( 'wp-e-commerce' === $payment->get_source() ) : ?>
251
+	<?php if ('wp-e-commerce' === $payment->get_source()) : ?>
252 252
 
253 253
 		<tr>
254 254
 			<th scope="row">
255
-				<?php esc_html_e( 'Purchase ID', 'pronamic_ideal' ); ?>
255
+				<?php esc_html_e('Purchase ID', 'pronamic_ideal'); ?>
256 256
 			</th>
257 257
 			<td>
258
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_wpsc_purchase_id', true ) ); ?>
258
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_wpsc_purchase_id', true)); ?>
259 259
 			</td>
260 260
 		</tr>
261 261
 		<tr>
262 262
 			<th scope="row">
263
-				<?php esc_html_e( 'Session ID', 'pronamic_ideal' ); ?>
263
+				<?php esc_html_e('Session ID', 'pronamic_ideal'); ?>
264 264
 			</th>
265 265
 			<td>
266
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_wpsc_session_id', true ) ); ?>
266
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_wpsc_session_id', true)); ?>
267 267
 			</td>
268 268
 		</tr>
269 269
 
270 270
 	<?php endif; ?>
271 271
 
272
-	<?php if ( 'membership' === $payment->get_source() ) : ?>
272
+	<?php if ('membership' === $payment->get_source()) : ?>
273 273
 
274 274
 		<tr>
275 275
 			<th scope="row">
276
-				<?php esc_html_e( 'User ID', 'pronamic_ideal' ); ?>
276
+				<?php esc_html_e('User ID', 'pronamic_ideal'); ?>
277 277
 			</th>
278 278
 			<td>
279
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_membership_user_id', true ) ); ?>
279
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_membership_user_id', true)); ?>
280 280
 			</td>
281 281
 		</tr>
282 282
 		<tr>
283 283
 			<th scope="row">
284
-				<?php esc_html_e( 'Subscription ID', 'pronamic_ideal' ); ?>
284
+				<?php esc_html_e('Subscription ID', 'pronamic_ideal'); ?>
285 285
 			</th>
286 286
 			<td>
287
-				<?php echo esc_html( get_post_meta( $payment->get_id(), '_pronamic_payment_membership_subscription_id', true ) ); ?>
287
+				<?php echo esc_html(get_post_meta($payment->get_id(), '_pronamic_payment_membership_subscription_id', true)); ?>
288 288
 			</td>
289 289
 		</tr>
290 290
 
Please login to merge, or discard this patch.
admin/page-reports.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 ?>
14 14
 <div class="wrap">
15
-	<h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
15
+	<h1 class="wp-heading-inline"><?php echo esc_html(get_admin_page_title()); ?></h1>
16 16
 
17 17
 	<hr class="wp-header-end">
18 18
 
@@ -26,22 +26,22 @@  discard block
 block discarded – undo
26 26
 				<div class="pronamic-pay-chart-sidebar">
27 27
 					<ul class="pronamci-pay-chart-legend">
28 28
 
29
-						<?php foreach ( $this->reports->get_reports() as $i => $serie ) : ?>
29
+						<?php foreach ($this->reports->get_reports() as $i => $serie) : ?>
30 30
 
31
-							<li class="<?php echo esc_attr( $serie->class ); ?>" data-pronamic-pay-highlight-serie="<?php echo esc_attr( $i ); ?>">
31
+							<li class="<?php echo esc_attr($serie->class); ?>" data-pronamic-pay-highlight-serie="<?php echo esc_attr($i); ?>">
32 32
 								<?php
33 33
 
34 34
 								echo '<strong>';
35 35
 
36
-								if ( isset( $serie->tooltipFormatter ) && 'money' === $serie->tooltipFormatter ) {
37
-									echo esc_html( Util::format_price( $serie->legendValue ) );
36
+								if (isset($serie->tooltipFormatter) && 'money' === $serie->tooltipFormatter) {
37
+									echo esc_html(Util::format_price($serie->legendValue));
38 38
 								} else {
39
-									echo esc_html( $serie->legendValue );
39
+									echo esc_html($serie->legendValue);
40 40
 								}
41 41
 
42 42
 								echo '</strong>';
43 43
 
44
-								echo esc_html( $serie->label );
44
+								echo esc_html($serie->label);
45 45
 
46 46
 								?>
47 47
 							</li>
Please login to merge, or discard this patch.
admin/tab-getting-started.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 // If this file is called directly, abort.
12
-if ( ! defined( 'WPINC' ) ) {
12
+if ( ! defined('WPINC')) {
13 13
 	die;
14 14
 }
15 15
 
16 16
 ?>
17 17
 <div class="feature-section two-col">
18 18
 	<div class="col">
19
-		<h3><?php esc_html_e( 'Step 1: open an account with a payment provider', 'pronamic_ideal' ); ?></h3>
19
+		<h3><?php esc_html_e('Step 1: open an account with a payment provider', 'pronamic_ideal'); ?></h3>
20 20
 
21 21
 		<p>
22 22
 			<?php
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 						array(
43 43
 							'page' => 'pronamic_pay_tools',
44 44
 							'tab'  => 'gateways',
45
-						), admin_url( 'admin.php' )
45
+						), admin_url('admin.php')
46 46
 					)
47 47
 				),
48
-				esc_html__( 'View supported payment providers', 'pronamic_ideal' )
48
+				esc_html__('View supported payment providers', 'pronamic_ideal')
49 49
 			);
50 50
 
51 51
 			?>
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	</div>
64 64
 
65 65
 	<div class="col">
66
-		<h3><?php esc_html_e( 'Step 2: add payment provider configuration', 'pronamic_ideal' ); ?></h3>
66
+		<h3><?php esc_html_e('Step 2: add payment provider configuration', 'pronamic_ideal'); ?></h3>
67 67
 
68 68
 		<p>
69 69
 			<?php
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
 					add_query_arg(
97 97
 						array(
98 98
 							'post_type' => 'pronamic_gateway',
99
-						), admin_url( 'post-new.php' )
99
+						), admin_url('post-new.php')
100 100
 					)
101 101
 				),
102
-				esc_html__( 'Add new payment provider configuration', 'pronamic_ideal' )
102
+				esc_html__('Add new payment provider configuration', 'pronamic_ideal')
103 103
 			);
104 104
 
105 105
 			?>
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 <div class="feature-section two-col">
111 111
 	<div class="col">
112
-		<h3><?php esc_html_e( 'Step 3: test configuration', 'pronamic_ideal' ); ?></h3>
112
+		<h3><?php esc_html_e('Step 3: test configuration', 'pronamic_ideal'); ?></h3>
113 113
 
114 114
 		<p>
115 115
 			<?php
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	</div>
148 148
 
149 149
 	<div class="col">
150
-		<h3><?php esc_html_e( 'Step 4: configure e-commerce plugin', 'pronamic_ideal' ); ?></h3>
150
+		<h3><?php esc_html_e('Step 4: configure e-commerce plugin', 'pronamic_ideal'); ?></h3>
151 151
 
152 152
 		<p>
153 153
 			<?php
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
 						array(
172 172
 							'page' => 'pronamic_pay_tools',
173 173
 							'tab'  => 'extensions',
174
-						), admin_url( 'admin.php' )
174
+						), admin_url('admin.php')
175 175
 					)
176 176
 				),
177
-				esc_html__( 'View supported e-commerce plugins', 'pronamic_ideal' )
177
+				esc_html__('View supported e-commerce plugins', 'pronamic_ideal')
178 178
 			);
179 179
 
180 180
 			?>
Please login to merge, or discard this patch.
admin/meta-box-form-options.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@  discard block
 block discarded – undo
8 8
  * @package   Pronamic\WordPress\Pay
9 9
  */
10 10
 
11
-wp_nonce_field( 'pronamic_pay_save_form_options', 'pronamic_pay_nonce' );
11
+wp_nonce_field('pronamic_pay_save_form_options', 'pronamic_pay_nonce');
12 12
 
13 13
 ?>
14 14
 <table class="form-table">
15 15
 	<tr>
16 16
 		<th scope="row">
17 17
 			<label for="_pronamic_payment_form_config_id">
18
-				<?php esc_html_e( 'Gateway', 'pronamic_ideal' ); ?>
18
+				<?php esc_html_e('Gateway', 'pronamic_ideal'); ?>
19 19
 			</label>
20 20
 		</th>
21 21
 		<td>
22 22
 			<?php
23 23
 
24
-			$config_id = get_post_meta( $post->ID, '_pronamic_payment_form_config_id', true );
24
+			$config_id = get_post_meta($post->ID, '_pronamic_payment_form_config_id', true);
25 25
 
26 26
 			\Pronamic\WordPress\Pay\Admin\AdminModule::dropdown_configs(
27 27
 				array(
@@ -36,39 +36,39 @@  discard block
 block discarded – undo
36 36
 	<tr>
37 37
 		<th scope="row">
38 38
 			<label for="_pronamic_payment_form_button_text">
39
-				<?php esc_html_e( 'Button Text', 'pronamic_ideal' ); ?>
39
+				<?php esc_html_e('Button Text', 'pronamic_ideal'); ?>
40 40
 			</label>
41 41
 		</th>
42 42
 		<td>
43
-			<?php $button_text = get_post_meta( $post->ID, '_pronamic_payment_form_button_text', true ); ?>
43
+			<?php $button_text = get_post_meta($post->ID, '_pronamic_payment_form_button_text', true); ?>
44 44
 
45
-			<input class="regular-text" type="text" name="_pronamic_payment_form_button_text" value="<?php echo esc_attr( $button_text ); ?>" placeholder="<?php esc_attr_e( 'Pay Now', 'pronamic_ideal' ); ?>" />
45
+			<input class="regular-text" type="text" name="_pronamic_payment_form_button_text" value="<?php echo esc_attr($button_text); ?>" placeholder="<?php esc_attr_e('Pay Now', 'pronamic_ideal'); ?>" />
46 46
 		</td>
47 47
 	</tr>
48 48
 	<tr>
49 49
 		<th scope="row">
50 50
 			<label for="_pronamic_payment_form_amount_method">
51
-				<?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?>
51
+				<?php esc_html_e('Amount', 'pronamic_ideal'); ?>
52 52
 			</label>
53 53
 		</th>
54 54
 		<td>
55 55
 			<select name="_pronamic_payment_form_amount_method">
56 56
 				<?php
57 57
 
58
-				$amount_method = get_post_meta( $post->ID, '_pronamic_payment_form_amount_method', true );
58
+				$amount_method = get_post_meta($post->ID, '_pronamic_payment_form_amount_method', true);
59 59
 
60 60
 				$options = array(
61
-					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_INPUT_ONLY        => __( 'Show as input field', 'pronamic_ideal' ),
62
-					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_CHOICES_ONLY      => __( 'Show as choices', 'pronamic_ideal' ),
63
-					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_CHOICES_AND_INPUT => __( 'Show as choices with input field', 'pronamic_ideal' ),
61
+					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_INPUT_ONLY        => __('Show as input field', 'pronamic_ideal'),
62
+					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_CHOICES_ONLY      => __('Show as choices', 'pronamic_ideal'),
63
+					\Pronamic\WordPress\Pay\Forms\FormPostType::AMOUNT_METHOD_CHOICES_AND_INPUT => __('Show as choices with input field', 'pronamic_ideal'),
64 64
 				);
65 65
 
66
-				foreach ( $options as $value => $name ) {
66
+				foreach ($options as $value => $name) {
67 67
 					printf(
68 68
 						'<option value="%s" %s>%s</option>',
69
-						esc_attr( $value ),
70
-						selected( $value, $amount_method, false ),
71
-						esc_html( $name )
69
+						esc_attr($value),
70
+						selected($value, $amount_method, false),
71
+						esc_html($name)
72 72
 					);
73 73
 				}
74 74
 				?>
@@ -81,21 +81,21 @@  discard block
 block discarded – undo
81 81
 		<td>
82 82
 			<?php
83 83
 
84
-			$choices = get_post_meta( $post->ID, '_pronamic_payment_form_amount_choices', true );
84
+			$choices = get_post_meta($post->ID, '_pronamic_payment_form_amount_choices', true);
85 85
 
86 86
 			// Start with an empty field.
87
-			if ( empty( $choices ) ) {
88
-				$choices = array( '' );
87
+			if (empty($choices)) {
88
+				$choices = array('');
89 89
 			}
90 90
 
91 91
 			// Add empty input field.
92 92
 			$choices[] = '';
93 93
 
94
-			foreach ( $choices as $i => $amount ) {
95
-				if ( ! empty( $amount ) ) {
96
-					$decimals = ( $amount % 100 > 0 ? 2 : 0 );
94
+			foreach ($choices as $i => $amount) {
95
+				if ( ! empty($amount)) {
96
+					$decimals = ($amount % 100 > 0 ? 2 : 0);
97 97
 
98
-					$amount = number_format( ( $amount / 100 ), $decimals, pronamic_pay_get_decimal_separator(), pronamic_pay_get_thousands_separator() );
98
+					$amount = number_format(($amount / 100), $decimals, pronamic_pay_get_decimal_separator(), pronamic_pay_get_thousands_separator());
99 99
 				}
100 100
 
101 101
 				printf(
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
 							€ <input id="_pronamic_payment_form_amount_choice_%d" type="text" name="_pronamic_payment_form_amount_choices[]" value="%s" />
105 105
 						</label>
106 106
 					</div>',
107
-					esc_attr( $i ),
108
-					esc_attr( $i ),
109
-					esc_attr( $amount )
107
+					esc_attr($i),
108
+					esc_attr($i),
109
+					esc_attr($amount)
110 110
 				);
111 111
 			}
112 112
 			?>
Please login to merge, or discard this patch.
admin/page-tools.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
 use Pronamic\WordPress\Pay\Plugin;
12 12
 
13 13
 $tabs = array(
14
-	'system_status' => __( 'System Status', 'pronamic_ideal' ),
15
-	'gateways'      => __( 'Payment Gateways', 'pronamic_ideal' ),
16
-	'extensions'    => __( 'Extensions', 'pronamic_ideal' ),
17
-	'documentation' => __( 'Documentation', 'pronamic_ideal' ),
14
+	'system_status' => __('System Status', 'pronamic_ideal'),
15
+	'gateways'      => __('Payment Gateways', 'pronamic_ideal'),
16
+	'extensions'    => __('Extensions', 'pronamic_ideal'),
17
+	'documentation' => __('Documentation', 'pronamic_ideal'),
18 18
 );
19 19
 
20
-$current_tab = filter_input( INPUT_GET, 'tab', FILTER_SANITIZE_STRING );
21
-$current_tab = empty( $current_tab ) ? key( $tabs ) : $current_tab;
20
+$current_tab = filter_input(INPUT_GET, 'tab', FILTER_SANITIZE_STRING);
21
+$current_tab = empty($current_tab) ? key($tabs) : $current_tab;
22 22
 
23 23
 ?>
24 24
 
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 	<h1 class="nav-tab-wrapper">
27 27
 		<?php
28 28
 
29
-		foreach ( $tabs as $tab => $title ) {
30
-			$classes = array( 'nav-tab' );
29
+		foreach ($tabs as $tab => $title) {
30
+			$classes = array('nav-tab');
31 31
 
32
-			if ( $current_tab === $tab ) {
32
+			if ($current_tab === $tab) {
33 33
 				$classes[] = 'nav-tab-active';
34 34
 			}
35 35
 
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
 				array(
38 38
 					'page' => 'pronamic_pay_tools',
39 39
 					'tab'  => $tab,
40
-				), admin_url( 'admin.php' )
40
+				), admin_url('admin.php')
41 41
 			);
42 42
 
43 43
 			printf(
44 44
 				'<a class="nav-tab %s" href="%s">%s</a>',
45
-				esc_attr( implode( ' ', $classes ) ),
46
-				esc_attr( $url ),
47
-				esc_html( $title )
45
+				esc_attr(implode(' ', $classes)),
46
+				esc_attr($url),
47
+				esc_html($title)
48 48
 			);
49 49
 		}
50 50
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
 	<?php
57 57
 
58
-	$file = plugin_dir_path( Plugin::$file ) . 'admin/tab-' . $current_tab . '.php';
58
+	$file = plugin_dir_path(Plugin::$file) . 'admin/tab-' . $current_tab . '.php';
59 59
 
60
-	if ( is_readable( $file ) ) {
60
+	if (is_readable($file)) {
61 61
 		include $file;
62 62
 	}
63 63
 
Please login to merge, or discard this patch.
admin/pointer-tools.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -9,61 +9,61 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h3><?php esc_html_e( 'Tools', 'pronamic_ideal' ); ?></h3>
12
+<h3><?php esc_html_e('Tools', 'pronamic_ideal'); ?></h3>
13 13
 
14 14
 <p>
15
-	<?php esc_html_e( 'On the tools page you can find some additional features and information.', 'pronamic_ideal' ); ?>
15
+	<?php esc_html_e('On the tools page you can find some additional features and information.', 'pronamic_ideal'); ?>
16 16
 </p>
17 17
 
18 18
 <p>
19
-	<strong><?php esc_html_e( 'System Status', 'pronamic_ideal' ); ?></strong><br />
20
-	<?php esc_html_e( 'The system status page gives you some basic information about your WordPress installation which come in handy if you are having issues.', 'pronamic_ideal' ); ?>
19
+	<strong><?php esc_html_e('System Status', 'pronamic_ideal'); ?></strong><br />
20
+	<?php esc_html_e('The system status page gives you some basic information about your WordPress installation which come in handy if you are having issues.', 'pronamic_ideal'); ?>
21 21
 </p>
22 22
 
23 23
 <p>
24
-	<strong><?php esc_html_e( 'iDEAL Status', 'pronamic_ideal' ); ?></strong><br />
25
-	<?php esc_html_e( 'The iDEAL status page gives you information about the iDEAL status of the various banks who offer iDEAL.', 'pronamic_ideal' ); ?>
24
+	<strong><?php esc_html_e('iDEAL Status', 'pronamic_ideal'); ?></strong><br />
25
+	<?php esc_html_e('The iDEAL status page gives you information about the iDEAL status of the various banks who offer iDEAL.', 'pronamic_ideal'); ?>
26 26
 </p>
27 27
 
28 28
 <p>
29
-	<strong><?php esc_html_e( 'Pages Generator', 'pronamic_ideal' ); ?></strong><br />
30
-	<?php esc_html_e( 'With the pages generator tool you can easily generate some optional payment status pages.', 'pronamic_ideal' ); ?>
29
+	<strong><?php esc_html_e('Pages Generator', 'pronamic_ideal'); ?></strong><br />
30
+	<?php esc_html_e('With the pages generator tool you can easily generate some optional payment status pages.', 'pronamic_ideal'); ?>
31 31
 </p>
32 32
 
33 33
 <p>
34
-	<strong><?php esc_html_e( 'Gateways', 'pronamic_ideal' ); ?></strong><br />
35
-	<?php esc_html_e( 'The gateways page gives you an overview of all the gateways that er supported by the Pronamic Pay plugin.', 'pronamic_ideal' ); ?>
34
+	<strong><?php esc_html_e('Gateways', 'pronamic_ideal'); ?></strong><br />
35
+	<?php esc_html_e('The gateways page gives you an overview of all the gateways that er supported by the Pronamic Pay plugin.', 'pronamic_ideal'); ?>
36 36
 </p>
37 37
 
38 38
 <p>
39
-	<strong><?php esc_html_e( 'Extensions', 'pronamic_ideal' ); ?></strong><br />
40
-	<?php esc_html_e( 'The extensions page gives you an overview of all the extensions that er supported by the Pronamic Pay plugin.', 'pronamic_ideal' ); ?>
39
+	<strong><?php esc_html_e('Extensions', 'pronamic_ideal'); ?></strong><br />
40
+	<?php esc_html_e('The extensions page gives you an overview of all the extensions that er supported by the Pronamic Pay plugin.', 'pronamic_ideal'); ?>
41 41
 </p>
42 42
 
43 43
 <p>
44
-	<strong><?php esc_html_e( 'Methods', 'pronamic_ideal' ); ?></strong><br />
45
-	<?php esc_html_e( 'The methods page gives you an overview of all the methods that er supported by the Pronamic Pay plugin.', 'pronamic_ideal' ); ?>
44
+	<strong><?php esc_html_e('Methods', 'pronamic_ideal'); ?></strong><br />
45
+	<?php esc_html_e('The methods page gives you an overview of all the methods that er supported by the Pronamic Pay plugin.', 'pronamic_ideal'); ?>
46 46
 </p>
47 47
 
48 48
 <p>
49
-	<strong><?php esc_html_e( 'Documentation', 'pronamic_ideal' ); ?></strong><br />
50
-	<?php esc_html_e( 'The documentation page has an overview of all kind of documentation files from different payment providers.', 'pronamic_ideal' ); ?>
49
+	<strong><?php esc_html_e('Documentation', 'pronamic_ideal'); ?></strong><br />
50
+	<?php esc_html_e('The documentation page has an overview of all kind of documentation files from different payment providers.', 'pronamic_ideal'); ?>
51 51
 </p>
52 52
 
53 53
 <p>
54
-	<strong><?php esc_html_e( 'Brand', 'pronamic_ideal' ); ?></strong><br />
55
-	<?php esc_html_e( 'The brand page has some additional images and banners which you could add to your WordPress website.', 'pronamic_ideal' ); ?>
54
+	<strong><?php esc_html_e('Brand', 'pronamic_ideal'); ?></strong><br />
55
+	<?php esc_html_e('The brand page has some additional images and banners which you could add to your WordPress website.', 'pronamic_ideal'); ?>
56 56
 </p>
57 57
 
58 58
 <p>
59
-	<strong><?php esc_html_e( 'License', 'pronamic_ideal' ); ?></strong><br />
60
-	<?php esc_html_e( 'The license page gives you additional information about your license and license key.', 'pronamic_ideal' ); ?>
59
+	<strong><?php esc_html_e('License', 'pronamic_ideal'); ?></strong><br />
60
+	<?php esc_html_e('The license page gives you additional information about your license and license key.', 'pronamic_ideal'); ?>
61 61
 </p>
62 62
 
63 63
 <div class="wp-pointer-buttons pp-pointer-buttons">
64
-	<a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_settings', admin_url( 'admin.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a>
64
+	<a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_settings', admin_url('admin.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a>
65 65
 
66 66
 	<span class="pp-pointer-buttons-right">
67
-		<a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a>
67
+		<a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a>
68 68
 	</span>
69 69
 </div>
Please login to merge, or discard this patch.
admin/meta-box-payment-log.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,39 +19,39 @@
 block discarded – undo
19 19
 <table class="widefat fixed comments comments-box" cellspacing="0">
20 20
 	<tbody>
21 21
 
22
-		<?php if ( empty( $comments ) ) : ?>
22
+		<?php if (empty($comments)) : ?>
23 23
 
24 24
 			<tr class="no-items">
25 25
 				<td>
26
-					<?php esc_html_e( 'No logs found.', 'pronamic_ideal' ); ?>
26
+					<?php esc_html_e('No logs found.', 'pronamic_ideal'); ?>
27 27
 				</td>
28 28
 			</tr>
29 29
 
30 30
 		<?php else : ?>
31 31
 
32
-			<?php foreach ( $comments as $comment ) : ?>
32
+			<?php foreach ($comments as $comment) : ?>
33 33
 
34 34
 				<?php
35 35
 
36 36
 				$html_id    = 'comment-' . $comment->comment_ID;
37
-				$html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
37
+				$html_class = join(' ', get_comment_class(wp_get_comment_status($comment->comment_ID)));
38 38
 
39 39
 				?>
40
-				<tr id="<?php esc_attr( $html_id ); ?>" class="<?php esc_attr( $html_class ); ?>">
40
+				<tr id="<?php esc_attr($html_id); ?>" class="<?php esc_attr($html_class); ?>">
41 41
 					<td>
42 42
 						<?php
43 43
 
44 44
 						printf(
45
-							esc_html__( '%1$s at %2$s', 'pronamic_ideal' ),
45
+							esc_html__('%1$s at %2$s', 'pronamic_ideal'),
46 46
 							/* translators: comment date format. See http://php.net/date */
47
-							esc_html( get_comment_date( __( 'Y/m/d', 'pronamic_ideal' ), $comment->comment_ID ) ),
48
-							esc_html( get_comment_date( get_option( 'time_format' ), $comment->comment_ID ) )
47
+							esc_html(get_comment_date(__('Y/m/d', 'pronamic_ideal'), $comment->comment_ID)),
48
+							esc_html(get_comment_date(get_option('time_format'), $comment->comment_ID))
49 49
 						);
50 50
 
51 51
 						?>
52 52
 					</td>
53 53
 					<td>
54
-						<?php comment_text( $comment ); ?>
54
+						<?php comment_text($comment); ?>
55 55
 					</td>
56 56
 				</tr>
57 57
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,13 +27,15 @@
 block discarded – undo
27 27
 				</td>
28 28
 			</tr>
29 29
 
30
-		<?php else : ?>
30
+		<?php else {
31
+	: ?>
31 32
 
32 33
 			<?php foreach ( $comments as $comment ) : ?>
33 34
 
34 35
 				<?php
35 36
 
36 37
 				$html_id    = 'comment-' . $comment->comment_ID;
38
+}
37 39
 				$html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
38 40
 
39 41
 				?>
Please login to merge, or discard this patch.
admin/pointer-payments.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,20 +9,20 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h3><?php esc_html_e( 'Payments', 'pronamic_ideal' ); ?></h3>
12
+<h3><?php esc_html_e('Payments', 'pronamic_ideal'); ?></h3>
13 13
 
14 14
 <p>
15
-	<?php esc_html_e( 'On the payments page you can find an overview off all the payments initiated on your WordPress site.', 'pronamic_ideal' ); ?>
16
-	<?php esc_html_e( 'You can easily filter the payments by status or use the search field to search for specific payments.', 'pronamic_ideal' ); ?>
17
-	<?php esc_html_e( 'We advice you to regular check the pending payments on this overview and adjust the status of these payments manual if needed.', 'pronamic_ideal' ); ?>
15
+	<?php esc_html_e('On the payments page you can find an overview off all the payments initiated on your WordPress site.', 'pronamic_ideal'); ?>
16
+	<?php esc_html_e('You can easily filter the payments by status or use the search field to search for specific payments.', 'pronamic_ideal'); ?>
17
+	<?php esc_html_e('We advice you to regular check the pending payments on this overview and adjust the status of these payments manual if needed.', 'pronamic_ideal'); ?>
18 18
 </p>
19 19
 
20 20
 <div class="wp-pointer-buttons pp-pointer-buttons">
21
-	<a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_ideal', admin_url( 'edit.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a>
21
+	<a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_ideal', admin_url('edit.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a>
22 22
 
23 23
 	<span class="pp-pointer-buttons-right">
24
-		<a href="<?php echo esc_attr( add_query_arg( 'post_type', 'pronamic_gateway', admin_url( 'edit.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Next', 'pronamic_ideal' ); ?></a>
24
+		<a href="<?php echo esc_attr(add_query_arg('post_type', 'pronamic_gateway', admin_url('edit.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Next', 'pronamic_ideal'); ?></a>
25 25
 
26
-		<a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a>
26
+		<a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a>
27 27
 	</span>
28 28
 </div>
Please login to merge, or discard this patch.
admin/meta-box-gateway-test.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -14,35 +14,35 @@  discard block
 block discarded – undo
14 14
 use Pronamic\WordPress\Pay\Gateways\IDeal_Basic\Gateway as IDeal_Basic_Gateway;
15 15
 use Pronamic\WordPress\Pay\Plugin;
16 16
 
17
-$gateway = Plugin::get_gateway( get_the_ID() );
17
+$gateway = Plugin::get_gateway(get_the_ID());
18 18
 
19
-if ( $gateway ) {
20
-	wp_nonce_field( 'test_pay_gateway', 'pronamic_pay_test_nonce' );
19
+if ($gateway) {
20
+	wp_nonce_field('test_pay_gateway', 'pronamic_pay_test_nonce');
21 21
 
22 22
 	$is_ideal  = false;
23 23
 	$is_ideal |= $gateway instanceof IDeal_Basic_Gateway;
24 24
 	$is_ideal |= $gateway instanceof IDeal_Advanced_V3_Gateway;
25 25
 
26 26
 	// Payment method selector.
27
-	$payment_methods = $gateway->get_payment_method_field( true );
27
+	$payment_methods = $gateway->get_payment_method_field(true);
28 28
 
29 29
 	$inputs = array();
30 30
 
31
-	foreach ( $payment_methods['choices'][0]['options'] as $payment_method => $method_name ) {
32
-		$gateway->set_payment_method( $payment_method );
31
+	foreach ($payment_methods['choices'][0]['options'] as $payment_method => $method_name) {
32
+		$gateway->set_payment_method($payment_method);
33 33
 
34 34
 		// Payment method input HTML.
35 35
 		$html = $gateway->get_input_html();
36 36
 
37
-		if ( ! empty( $html ) ) {
38
-			$inputs[ $payment_method ] = array(
37
+		if ( ! empty($html)) {
38
+			$inputs[$payment_method] = array(
39 39
 				'label' => $method_name,
40 40
 				'html'  => $html,
41 41
 			);
42 42
 		}
43 43
 	}
44 44
 
45
-	if ( $gateway->has_error() ) {
45
+	if ($gateway->has_error()) {
46 46
 		$pronamic_ideal_errors[] = $gateway->get_error();
47 47
 	}
48 48
 
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
 		<tr>
54 54
 			<th scope="row">
55 55
 				<label for="pronamic-pay-test-payment-methods">
56
-					<?php esc_html_e( 'Payment Method', 'pronamic_ideal' ); ?>
56
+					<?php esc_html_e('Payment Method', 'pronamic_ideal'); ?>
57 57
 				</label>
58 58
 			</th>
59 59
 			<td>
60 60
 				<select id="pronamic-pay-test-payment-methods" name="pronamic_pay_test_payment_method">
61 61
 					<?php
62 62
 
63
-					foreach ( $payment_methods['choices'][0]['options'] as $payment_method => $method_name ) {
63
+					foreach ($payment_methods['choices'][0]['options'] as $payment_method => $method_name) {
64 64
 						printf(
65 65
 							'<option value="%s">%s</option>',
66
-							esc_attr( $payment_method ),
67
-							esc_html( $method_name )
66
+							esc_attr($payment_method),
67
+							esc_html($method_name)
68 68
 						);
69 69
 					}
70 70
 
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
 			</td>
74 74
 		</tr>
75 75
 
76
-		<?php foreach ( $inputs as $method => $input ) : ?>
76
+		<?php foreach ($inputs as $method => $input) : ?>
77 77
 
78
-			<tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr( $method ); ?>">
78
+			<tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr($method); ?>">
79 79
 				<th scope="row">
80
-					<?php echo esc_html( $input['label'] ); ?>
80
+					<?php echo esc_html($input['label']); ?>
81 81
 				</th>
82 82
 				<td>
83 83
 					<?php
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 		<tr>
94 94
 			<th scope="row">
95
-				<?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?>
95
+				<?php esc_html_e('Amount', 'pronamic_ideal'); ?>
96 96
 			</th>
97 97
 			<td>
98 98
 				<label for="test_amount">€</label>
@@ -101,39 +101,39 @@  discard block
 block discarded – undo
101 101
 			</td>
102 102
 		</tr>
103 103
 
104
-		<?php if ( $gateway->supports( 'recurring' ) ) : ?>
104
+		<?php if ($gateway->supports('recurring')) : ?>
105 105
 
106 106
 			<?php
107 107
 
108 108
 			$options = array(
109
-				''         => __( '— Select Repeat —', 'pronamic_ideal' ),
110
-				'daily'    => __( 'Daily', 'pronamic_ideal' ),
111
-				'weekly'   => __( 'Weekly', 'pronamic_ideal' ),
112
-				'monthly'  => __( 'Monthly', 'pronamic_ideal' ),
113
-				'annually' => __( 'Annually', 'pronamic_ideal' ),
109
+				''         => __('— Select Repeat —', 'pronamic_ideal'),
110
+				'daily'    => __('Daily', 'pronamic_ideal'),
111
+				'weekly'   => __('Weekly', 'pronamic_ideal'),
112
+				'monthly'  => __('Monthly', 'pronamic_ideal'),
113
+				'annually' => __('Annually', 'pronamic_ideal'),
114 114
 			);
115 115
 
116 116
 			$options_interval_suffix = array(
117
-				'daily'    => __( 'days', 'pronamic_ideal' ),
118
-				'weekly'   => __( 'weeks', 'pronamic_ideal' ),
119
-				'monthly'  => __( 'months', 'pronamic_ideal' ),
120
-				'annually' => __( 'year', 'pronamic_ideal' ),
117
+				'daily'    => __('days', 'pronamic_ideal'),
118
+				'weekly'   => __('weeks', 'pronamic_ideal'),
119
+				'monthly'  => __('months', 'pronamic_ideal'),
120
+				'annually' => __('year', 'pronamic_ideal'),
121 121
 			);
122 122
 
123 123
 			?>
124 124
 			<tr>
125 125
 				<th scope="row">
126 126
 					<label for="pronamic-pay-test-subscription">
127
-						<?php esc_html_e( 'Subscription', 'pronamic_ideal' ); ?>
127
+						<?php esc_html_e('Subscription', 'pronamic_ideal'); ?>
128 128
 					</label>
129 129
 				</th>
130 130
 				<td>
131 131
 					<fieldset>
132
-						<legend class="screen-reader-text"><span><?php esc_html_e( 'Test Subscription', 'pronamic_ideal' ); ?></span></legend>
132
+						<legend class="screen-reader-text"><span><?php esc_html_e('Test Subscription', 'pronamic_ideal'); ?></span></legend>
133 133
 
134 134
 						<label for="pronamic-pay-test-subscription">
135 135
 							<input name="pronamic_pay_test_subscription" id="pronamic-pay-test-subscription" value="1" type="checkbox" />		
136
-							<?php esc_html_e( 'Start a subscription for this payment.', 'pronamic_ideal' ); ?>
136
+							<?php esc_html_e('Start a subscription for this payment.', 'pronamic_ideal'); ?>
137 137
 						</label>
138 138
 					</fieldset>
139 139
 
@@ -148,24 +148,24 @@  discard block
 block discarded – undo
148 148
 			</tr>
149 149
 			<tr class="pronamic-pay-cloack pronamic-pay-test-subscription">
150 150
 				<th scope="row">
151
-					<label for="pronamic_pay_test_repeat_frequency"><?php esc_html_e( 'Frequency', 'pronamic_ideal' ); ?></label>
151
+					<label for="pronamic_pay_test_repeat_frequency"><?php esc_html_e('Frequency', 'pronamic_ideal'); ?></label>
152 152
 				</th>
153 153
 				<td>
154 154
 					<select id="pronamic_pay_test_repeat_frequency" name="pronamic_pay_test_repeat_frequency">
155 155
 						<?php
156 156
 
157
-						foreach ( $options as $key => $label ) {
157
+						foreach ($options as $key => $label) {
158 158
 							$interval_suffix = '';
159 159
 
160
-							if ( isset( $options_interval_suffix[ $key ] ) ) {
161
-								$interval_suffix = $options_interval_suffix[ $key ];
160
+							if (isset($options_interval_suffix[$key])) {
161
+								$interval_suffix = $options_interval_suffix[$key];
162 162
 							}
163 163
 
164 164
 							printf(
165 165
 								'<option value="%s" data-interval-suffix="%s">%s</option>',
166
-								esc_attr( $key ),
167
-								esc_attr( $interval_suffix ),
168
-								esc_html( $label )
166
+								esc_attr($key),
167
+								esc_attr($interval_suffix),
168
+								esc_html($label)
169 169
 							);
170 170
 						}
171 171
 
@@ -175,40 +175,40 @@  discard block
 block discarded – undo
175 175
 			</tr>
176 176
 			<tr class="pronamic-pay-cloack pronamic-pay-test-subscription">
177 177
 				<th scope="row">
178
-					<label for="pronamic_pay_test_repeat_interval"><?php esc_html_e( 'Repeat every', 'pronamic_ideal' ); ?></label>
178
+					<label for="pronamic_pay_test_repeat_interval"><?php esc_html_e('Repeat every', 'pronamic_ideal'); ?></label>
179 179
 				</th>
180 180
 				<td>
181 181
 					<select id="pronamic_pay_test_repeat_interval" name="pronamic_pay_test_repeat_interval">
182 182
 						<?php
183 183
 
184
-						foreach ( range( 1, 30 ) as $value ) {
184
+						foreach (range(1, 30) as $value) {
185 185
 							printf(
186 186
 								'<option value="%s">%s</option>',
187
-								esc_attr( $value ),
188
-								esc_html( $value )
187
+								esc_attr($value),
188
+								esc_html($value)
189 189
 							);
190 190
 						}
191 191
 
192 192
 						?>
193 193
 					</select>
194 194
 
195
-					<span id="pronamic_pay_test_repeat_interval_suffix"><?php esc_html_e( 'days/weeks/months/year', 'pronamic_ideal' ); ?></span>
195
+					<span id="pronamic_pay_test_repeat_interval_suffix"><?php esc_html_e('days/weeks/months/year', 'pronamic_ideal'); ?></span>
196 196
 				</td>
197 197
 			</tr>
198 198
 			<tr class="pronamic-pay-cloack pronamic-pay-test-subscription">
199 199
 				<th scope="row">
200
-					<?php esc_html_e( 'Ends On', 'pronamic_ideal' ); ?>
200
+					<?php esc_html_e('Ends On', 'pronamic_ideal'); ?>
201 201
 				</th>
202 202
 				<td>
203 203
 					<div>
204
-						<input type="radio" name="pronamic_pay_ends_on" value="never" <?php checked( 'never', '' ); ?> />
204
+						<input type="radio" name="pronamic_pay_ends_on" value="never" <?php checked('never', ''); ?> />
205 205
 
206
-						<?php esc_html_e( 'Never', 'pronamic_ideal' ); ?>
206
+						<?php esc_html_e('Never', 'pronamic_ideal'); ?>
207 207
 
208 208
 						<input type="number" name="pronamic_pay_ends_on_never" value="1" style="visibility: hidden;" />
209 209
 					</div>
210 210
 					<div>
211
-						<input type="radio" name="pronamic_pay_ends_on" value="count" <?php checked( 'count', '' ); ?> />
211
+						<input type="radio" name="pronamic_pay_ends_on" value="count" <?php checked('count', ''); ?> />
212 212
 
213 213
 						<?php
214 214
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 
226 226
 						echo wp_kses(
227 227
 							sprintf(
228
-								__( 'After %s times', 'pronamic_ideal' ),
229
-								sprintf( '<input type="number" name="pronamic_pay_ends_on_count" value="%s" min="1" />', esc_attr( '' ) )
228
+								__('After %s times', 'pronamic_ideal'),
229
+								sprintf('<input type="number" name="pronamic_pay_ends_on_count" value="%s" min="1" />', esc_attr(''))
230 230
 							),
231 231
 							$allowed_html
232 232
 						);
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
 						<?php
241 241
 						echo wp_kses(
242 242
 							sprintf(
243
-								__( 'On %s', 'pronamic_ideal' ),
244
-								sprintf( '<input type="date" id="pronamic_pay_ends_on_date" name="pronamic_pay_ends_on_date" value="%s" />', esc_attr( '' ) )
243
+								__('On %s', 'pronamic_ideal'),
244
+								sprintf('<input type="date" id="pronamic_pay_ends_on_date" name="pronamic_pay_ends_on_date" value="%s" />', esc_attr(''))
245 245
 							),
246 246
 							$allowed_html
247 247
 						);
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
 			</td>
259 259
 			<td>
260
-				<?php submit_button( __( 'Test', 'pronamic_ideal' ), 'secondary', 'test_pay_gateway', false ); ?>
260
+				<?php submit_button(__('Test', 'pronamic_ideal'), 'secondary', 'test_pay_gateway', false); ?>
261 261
 			</td>
262 262
 		</tr>
263 263
 
@@ -280,12 +280,12 @@  discard block
 block discarded – undo
280 280
 
281 281
 	<?php
282 282
 
283
-	if ( $is_ideal || $gateway instanceof \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Gateway ) {
283
+	if ($is_ideal || $gateway instanceof \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Gateway) {
284 284
 		include Plugin::$dirname . '/views/ideal-test-cases.php';
285 285
 	}
286 286
 } else {
287 287
 	printf(
288 288
 		'<em>%s</em>',
289
-		esc_html( __( 'Please save the entered account details of your payment provider, to make a test payment.', 'pronamic_ideal' ) )
289
+		esc_html(__('Please save the entered account details of your payment provider, to make a test payment.', 'pronamic_ideal'))
290 290
 	);
291 291
 }
Please login to merge, or discard this patch.