Passed
Push — develop ( 2a2acc...9eb85d )
by Remco
04:08
created
classes/Plugin.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 * Handle returns.
231 231
 	 */
232 232
 	public function handle_returns() {
233
-		if ( ! filter_has_var( INPUT_GET, 'payment' ) ) {
233
+		if ( !filter_has_var( INPUT_GET, 'payment' ) ) {
234 234
 			return;
235 235
 		}
236 236
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 			$valid_key = ( $key === $payment->key );
250 250
 		}
251 251
 
252
-		if ( ! $valid_key ) {
252
+		if ( !$valid_key ) {
253 253
 			wp_redirect( home_url() );
254 254
 
255 255
 			exit;
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	 * Maybe redirect.
278 278
 	 */
279 279
 	public function maybe_redirect() {
280
-		if ( ! filter_has_var( INPUT_GET, 'payment_redirect' ) ) {
280
+		if ( !filter_has_var( INPUT_GET, 'payment_redirect' ) ) {
281 281
 			return;
282 282
 		}
283 283
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 		// HTML Answer.
289 289
 		$html_answer = $payment->get_meta( 'ogone_directlink_html_answer' );
290 290
 
291
-		if ( ! empty( $html_answer ) ) {
291
+		if ( !empty( $html_answer ) ) {
292 292
 			echo $html_answer; // WPCS: XSS ok.
293 293
 
294 294
 			exit;
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
 		$redirect_message = $payment->get_meta( 'payment_redirect_message' );
298 298
 
299
-		if ( ! empty( $redirect_message ) ) {
299
+		if ( !empty( $redirect_message ) ) {
300 300
 			$key = filter_input( INPUT_GET, 'key', FILTER_SANITIZE_STRING );
301 301
 
302 302
 			if ( $key !== $payment->key ) {
@@ -307,29 +307,29 @@  discard block
 block discarded – undo
307 307
 
308 308
 			// @see https://github.com/woothemes/woocommerce/blob/2.3.11/includes/class-wc-cache-helper.php
309 309
 			// @see https://www.w3-edge.com/products/w3-total-cache/
310
-			if ( ! defined( 'DONOTCACHEPAGE' ) ) {
310
+			if ( !defined( 'DONOTCACHEPAGE' ) ) {
311 311
 				define( 'DONOTCACHEPAGE', true );
312 312
 			}
313 313
 
314
-			if ( ! defined( 'DONOTCACHEDB' ) ) {
314
+			if ( !defined( 'DONOTCACHEDB' ) ) {
315 315
 				define( 'DONOTCACHEDB', true );
316 316
 			}
317 317
 
318
-			if ( ! defined( 'DONOTMINIFY' ) ) {
318
+			if ( !defined( 'DONOTMINIFY' ) ) {
319 319
 				define( 'DONOTMINIFY', true );
320 320
 			}
321 321
 
322
-			if ( ! defined( 'DONOTCDN' ) ) {
322
+			if ( !defined( 'DONOTCDN' ) ) {
323 323
 				define( 'DONOTCDN', true );
324 324
 			}
325 325
 
326
-			if ( ! defined( 'DONOTCACHEOBJECT' ) ) {
326
+			if ( !defined( 'DONOTCACHEOBJECT' ) ) {
327 327
 				define( 'DONOTCACHEOBJECT', true );
328 328
 			}
329 329
 
330 330
 			nocache_headers();
331 331
 
332
-			include Plugin::$dirname . '/views/redirect-message.php';
332
+			include Plugin::$dirname.'/views/redirect-message.php';
333 333
 
334 334
 			exit;
335 335
 		}
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 			}
349 349
 		}
350 350
 
351
-		if ( ! empty( $payment->action_url ) ) {
351
+		if ( !empty( $payment->action_url ) ) {
352 352
 			wp_redirect( $payment->action_url );
353 353
 
354 354
 			exit;
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	 */
378 378
 	public function plugins_loaded() {
379 379
 		// Load plugin text domain.
380
-		$rel_path = dirname( plugin_basename( self::$file ) ) . '/languages/';
380
+		$rel_path = dirname( plugin_basename( self::$file ) ).'/languages/';
381 381
 
382 382
 		load_plugin_textdomain( 'pronamic_ideal', false, $rel_path );
383 383
 
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 		);
472 472
 
473 473
 		if ( $payment_method ) {
474
-			$args['post__in'] = PaymentMethods::get_config_ids( $payment_method );
474
+			$args[ 'post__in' ] = PaymentMethods::get_config_ids( $payment_method );
475 475
 		}
476 476
 
477 477
 		$query = new WP_Query( $args );
@@ -512,12 +512,12 @@  discard block
 block discarded – undo
512 512
 	 * @param array $errors An array with errors to render.
513 513
 	 */
514 514
 	public static function render_errors( $errors = array() ) {
515
-		if ( ! is_array( $errors ) ) {
515
+		if ( !is_array( $errors ) ) {
516 516
 			$errors = array( $errors );
517 517
 		}
518 518
 
519 519
 		foreach ( $errors as $error ) {
520
-			include Plugin::$dirname . '/views/error.php';
520
+			include Plugin::$dirname.'/views/error.php';
521 521
 		}
522 522
 	}
523 523
 
@@ -682,10 +682,10 @@  discard block
 block discarded – undo
682 682
 		$payment->set_credit_card( $data->get_credit_card() );
683 683
 
684 684
 		// User Agent (@see https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/comment.php#L1962-L1965).
685
-		$payment->user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : null;
685
+		$payment->user_agent = isset( $_SERVER[ 'HTTP_USER_AGENT' ] ) ? $_SERVER[ 'HTTP_USER_AGENT' ] : null;
686 686
 
687 687
 		// IP (@see https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/comment.php#L1957-L1960).
688
-		$payment->user_ip = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : null;
688
+		$payment->user_ip = isset( $_SERVER[ 'REMOTE_ADDR' ] ) ? $_SERVER[ 'REMOTE_ADDR' ] : null;
689 689
 
690 690
 		return self::start_payment( $payment, $gateway );
691 691
 	}
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 			$subscription = $payment->get_subscription();
716 716
 
717 717
 			if ( $subscription ) {
718
-				if ( ! $payment->get_recurring() ) {
718
+				if ( !$payment->get_recurring() ) {
719 719
 					// First payment.
720 720
 					// Cancel subscription to prevent unwanted recurring payments in the future,
721 721
 					// when a valid customer ID might be set for the user.
Please login to merge, or discard this patch.
classes/Payments/PaymentsModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 	 * @return array
64 64
 	 */
65 65
 	public function exclude_payment_comment_notes( $clauses, $query ) {
66
-		$type = $query->query_vars['type'];
66
+		$type = $query->query_vars[ 'type' ];
67 67
 
68 68
 		// Ignore payment notes comments if it's not specifically requested.
69 69
 		if ( 'payment_note' !== $type ) {
70
-			$clauses['where'] .= " AND comment_type != 'payment_note'";
70
+			$clauses[ 'where' ] .= " AND comment_type != 'payment_note'";
71 71
 		}
72 72
 
73 73
 		return $clauses;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 				break;
112 112
 		}
113 113
 
114
-		if ( ! empty( $page_id ) ) {
114
+		if ( !empty( $page_id ) ) {
115 115
 			$page_url = get_permalink( $page_id );
116 116
 
117 117
 			if ( false !== $page_url ) {
Please login to merge, or discard this patch.
admin/meta-box-subscription-payments.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,19 +56,19 @@
 block discarded – undo
56 56
 
57 57
 				<tr>
58 58
 					<td>
59
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?>
59
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?>
60 60
 					</td>
61 61
 					<td>
62
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?>
62
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?>
63 63
 					</td>
64 64
 					<td>
65
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?>
65
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?>
66 66
 					</td>
67 67
 					<td>
68
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?>
68
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?>
69 69
 					</td>
70 70
 					<td>
71
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?>
71
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?>
72 72
 					</td>
73 73
 					<td>
74 74
 						<?php echo empty( $payment->start_date ) ? '—' : esc_html( $payment->start_date->format_i18n() ); ?>
Please login to merge, or discard this patch.
src/readme-md/README.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 [![Code Intelligence Status](https://scrutinizer-ci.com/g/pronamic/wp-pronamic-ideal/badges/code-intelligence.svg?b=develop)](https://scrutinizer-ci.com/code-intelligence)
21 21
 [![codecov](https://codecov.io/gh/pronamic/wp-pronamic-ideal/branch/develop/graph/badge.svg)](https://codecov.io/gh/pronamic/wp-pronamic-ideal)
22 22
 
23
-<?php include __DIR__ . '/../general/description-short.php'; ?>
23
+<?php include __DIR__.'/../general/description-short.php'; ?>
24 24
 
25 25
 
26 26
 ## Gateways
@@ -43,4 +43,4 @@  discard block
 block discarded – undo
43 43
 
44 44
 ## Links
45 45
 
46
-<?php include __DIR__ . '/../general/links.php'; ?>
46
+<?php include __DIR__.'/../general/links.php'; ?>
Please login to merge, or discard this patch.
admin/tab-system_status.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 				$timestamp = wp_next_scheduled( 'pronamic_pay_license_check' );
59 59
 
60 60
 				if ( false !== $timestamp ) {
61
-					$date = new \Pronamic\WordPress\Pay\DateTime( '@' . $timestamp, new DateTimeZone( 'UTC' ) );
61
+					$date = new \Pronamic\WordPress\Pay\DateTime( '@'.$timestamp, new DateTimeZone( 'UTC' ) );
62 62
 
63 63
 					echo esc_html( $date->format_i18n() );
64 64
 				} else {
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
 					$version = curl_version();
246 246
 					// @codingStandardsIgnoreEnd
247 247
 
248
-					if ( isset( $version['version'] ) ) {
249
-						echo esc_html( $version['version'] );
248
+					if ( isset( $version[ 'version' ] ) ) {
249
+						echo esc_html( $version[ 'version' ] );
250 250
 					}
251 251
 				}
252 252
 
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
 $data = get_transient( 'pronamic_pay_ideal_issuers_status' );
338 338
 
339
-if ( ! $data ) {
339
+if ( !$data ) {
340 340
 
341 341
 	$url = 'http://www.ideal-status.nl/static/issuers_current.json';
342 342
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 
345 345
 	$status_data = null;
346 346
 
347
-	if ( ! is_wp_error( $response ) ) {
347
+	if ( !is_wp_error( $response ) ) {
348 348
 		if ( 200 === wp_remote_retrieve_response_code( $response ) ) {
349 349
 			$body = wp_remote_retrieve_body( $response );
350 350
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 
410 410
 			<?php foreach ( $data as $status ) : ?>
411 411
 
412
-				<?php $alternate = ! $alternate; ?>
412
+				<?php $alternate = !$alternate; ?>
413 413
 
414 414
 				<tr<?php if ( $alternate ) : ?> class="alternate"<?php endif; ?>>
415 415
 					<td>
Please login to merge, or discard this patch.
classes/Payments/PaymentsDataStoreCPT.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
 
115 115
 		$post_status = $this->get_post_status( $payment->status );
116 116
 
117
-		if ( ! empty( $post_status ) ) {
118
-			$data['post_status'] = $post_status;
117
+		if ( !empty( $post_status ) ) {
118
+			$data[ 'post_status' ] = $post_status;
119 119
 		}
120 120
 
121 121
 		wp_update_post( $data );
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
 
286 286
 			$can_redirect = false;
287 287
 
288
-			do_action( 'pronamic_payment_status_update_' . $payment->source . '_' . $old . '_to_' . $new, $payment, $can_redirect, $previous_status, $payment->status );
289
-			do_action( 'pronamic_payment_status_update_' . $payment->source, $payment, $can_redirect, $previous_status, $payment->status );
288
+			do_action( 'pronamic_payment_status_update_'.$payment->source.'_'.$old.'_to_'.$new, $payment, $can_redirect, $previous_status, $payment->status );
289
+			do_action( 'pronamic_payment_status_update_'.$payment->source, $payment, $can_redirect, $previous_status, $payment->status );
290 290
 			do_action( 'pronamic_payment_status_update', $payment, $can_redirect, $previous_status, $payment->status );
291 291
 		}
292 292
 	}
Please login to merge, or discard this patch.
classes/Payments/PaymentData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 	 * @return string
224 224
 	 */
225 225
 	public function get_subscription_id() {
226
-		if ( ! $this->get_subscription() ) {
226
+		if ( !$this->get_subscription() ) {
227 227
 			return;
228 228
 		}
229 229
 
Please login to merge, or discard this patch.
classes/Subscriptions/SubscriptionsDataStoreCPT.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
 
100 100
 		$post_status = $this->get_post_status( $subscription->get_status() );
101 101
 
102
-		if ( ! empty( $post_status ) ) {
103
-			$data['post_status'] = $post_status;
102
+		if ( !empty( $post_status ) ) {
103
+			$data[ 'post_status' ] = $post_status;
104 104
 		}
105 105
 
106 106
 		wp_update_post( $data );
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
 
295 295
 			$can_redirect = false;
296 296
 
297
-			do_action( 'pronamic_subscription_status_update_' . $subscription->source . '_' . $old . '_to_' . $new, $subscription, $can_redirect, $previous_status, $subscription->status );
298
-			do_action( 'pronamic_subscription_status_update_' . $subscription->source, $subscription, $can_redirect, $previous_status, $subscription->status );
297
+			do_action( 'pronamic_subscription_status_update_'.$subscription->source.'_'.$old.'_to_'.$new, $subscription, $can_redirect, $previous_status, $subscription->status );
298
+			do_action( 'pronamic_subscription_status_update_'.$subscription->source, $subscription, $can_redirect, $previous_status, $subscription->status );
299 299
 			do_action( 'pronamic_subscription_status_update', $subscription, $can_redirect, $previous_status, $subscription->status );
300 300
 		}
301 301
 	}
Please login to merge, or discard this patch.
classes/Admin/AdminModule.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		// Gateway settings.
70 70
 		$this->gateway_settings = new GatewaySettings();
71 71
 
72
-		if ( ! wp_next_scheduled( 'pronamic_pay_license_check' ) ) {
72
+		if ( !wp_next_scheduled( 'pronamic_pay_license_check' ) ) {
73 73
 			wp_schedule_event( time(), 'daily', 'pronamic_pay_license_check' );
74 74
 		}
75 75
 	}
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 				||
96 96
 			filter_has_var( INPUT_GET, 'activate-multi' )
97 97
 				||
98
-			! current_user_can( 'manage_options' )
98
+			!current_user_can( 'manage_options' )
99 99
 		) {
100 100
 			return;
101 101
 		}
@@ -126,12 +126,12 @@  discard block
 block discarded – undo
126 126
 
127 127
 		$args = wp_parse_args( $args, $defaults );
128 128
 
129
-		$id    = $args['label_for'];
129
+		$id    = $args[ 'label_for' ];
130 130
 		$value = get_option( $id );
131 131
 
132 132
 		$legend = sprintf(
133 133
 			'<legend class="screen-reader-text"><span>%s</span></legend>',
134
-			esc_html( $args['label'] )
134
+			esc_html( $args[ 'label' ] )
135 135
 		);
136 136
 
137 137
 		$input = sprintf(
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 			'<label for="%s">%s %s</label>',
148 148
 			esc_attr( $id ),
149 149
 			$input,
150
-			esc_html( $args['label'] )
150
+			esc_html( $args[ 'label' ] )
151 151
 		);
152 152
 
153 153
 		printf( // WPCS: XSS ok.
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
 		$output = '';
188 188
 
189 189
 		// Dropdown.
190
-		$id       = $args['name'];
191
-		$name     = $args['name'];
192
-		$selected = $args['selected'];
190
+		$id       = $args[ 'name' ];
191
+		$name     = $args[ 'name' ];
192
+		$selected = $args[ 'selected' ];
193 193
 
194 194
 		if ( false === $selected ) {
195 195
 			$selected = get_option( $id );
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 			esc_attr( $name )
202 202
 		);
203 203
 
204
-		$options = \Pronamic\WordPress\Pay\Plugin::get_config_select_options( $args['payment_method'] );
204
+		$options = \Pronamic\WordPress\Pay\Plugin::get_config_select_options( $args[ 'payment_method' ] );
205 205
 
206 206
 		foreach ( $options as $value => $name ) {
207 207
 			$output .= sprintf(
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 		$output .= sprintf( '</select>' );
216 216
 
217 217
 		// Return or echo.
218
-		if ( $args['echo'] ) {
218
+		if ( $args[ 'echo' ] ) {
219 219
 			echo $output; // WPCS: XSS ok.
220 220
 		} else {
221 221
 			return $output;
@@ -231,33 +231,33 @@  discard block
 block discarded – undo
231 231
 	private function create_pages( $pages, $parent = null ) {
232 232
 		foreach ( $pages as $page ) {
233 233
 			$post = array(
234
-				'post_title'     => $page['post_title'],
235
-				'post_name'      => $page['post_title'],
236
-				'post_content'   => $page['post_content'],
234
+				'post_title'     => $page[ 'post_title' ],
235
+				'post_name'      => $page[ 'post_title' ],
236
+				'post_content'   => $page[ 'post_content' ],
237 237
 				'post_status'    => 'publish',
238 238
 				'post_type'      => 'page',
239 239
 				'comment_status' => 'closed',
240 240
 			);
241 241
 
242 242
 			if ( isset( $parent ) ) {
243
-				$post['post_parent'] = $parent;
243
+				$post[ 'post_parent' ] = $parent;
244 244
 			}
245 245
 
246 246
 			$result = wp_insert_post( $post, true );
247 247
 
248
-			if ( ! is_wp_error( $result ) ) {
249
-				if ( isset( $page['post_meta'] ) ) {
250
-					foreach ( $page['post_meta'] as $key => $value ) {
248
+			if ( !is_wp_error( $result ) ) {
249
+				if ( isset( $page[ 'post_meta' ] ) ) {
250
+					foreach ( $page[ 'post_meta' ] as $key => $value ) {
251 251
 						update_post_meta( $result, $key, $value );
252 252
 					}
253 253
 				}
254 254
 
255
-				if ( isset( $page['option_name'] ) ) {
256
-					update_option( $page['option_name'], $result );
255
+				if ( isset( $page[ 'option_name' ] ) ) {
256
+					update_option( $page[ 'option_name' ], $result );
257 257
 				}
258 258
 
259
-				if ( isset( $page['children'] ) ) {
260
-					$this->create_pages( $page['children'], $result );
259
+				if ( isset( $page[ 'children' ] ) ) {
260
+					$this->create_pages( $page[ 'children' ], $result );
261 261
 				}
262 262
 			}
263 263
 		}
@@ -267,11 +267,11 @@  discard block
 block discarded – undo
267 267
 	 * Maybe create pages.
268 268
 	 */
269 269
 	public function maybe_create_pages() {
270
-		if ( ! filter_has_var( INPUT_POST, 'pronamic_pay_create_pages' ) ) {
270
+		if ( !filter_has_var( INPUT_POST, 'pronamic_pay_create_pages' ) ) {
271 271
 			return;
272 272
 		}
273 273
 
274
-		if ( ! check_admin_referer( 'pronamic_pay_settings', 'pronamic_pay_nonce' ) ) {
274
+		if ( !check_admin_referer( 'pronamic_pay_settings', 'pronamic_pay_nonce' ) ) {
275 275
 			return;
276 276
 		}
277 277
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 			// Tippy.js - https://atomiks.github.io/tippyjs/.
377 377
 			wp_register_script(
378 378
 				'tippy.js',
379
-				plugins_url( 'assets/tippy.js/tippy.all' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
379
+				plugins_url( 'assets/tippy.js/tippy.all'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
380 380
 				array(),
381 381
 				'2.5.0',
382 382
 				true
@@ -392,14 +392,14 @@  discard block
 block discarded – undo
392 392
 
393 393
 			wp_register_style(
394 394
 				'pronamic-pay-admin',
395
-				plugins_url( 'css/admin' . $min . '.css', \Pronamic\WordPress\Pay\Plugin::$file ),
395
+				plugins_url( 'css/admin'.$min.'.css', \Pronamic\WordPress\Pay\Plugin::$file ),
396 396
 				array( 'pronamic-pay-icons' ),
397 397
 				$this->plugin->get_version()
398 398
 			);
399 399
 
400 400
 			wp_register_script(
401 401
 				'pronamic-pay-admin',
402
-				plugins_url( 'js/admin' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
402
+				plugins_url( 'js/admin'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
403 403
 				array( 'jquery', 'tippy.js' ),
404 404
 				$this->plugin->get_version(),
405 405
 				true
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 
468 468
 		add_menu_page(
469 469
 			__( 'Pronamic Pay', 'pronamic_ideal' ),
470
-			__( 'Pay', 'pronamic_ideal' ) . $badge,
470
+			__( 'Pay', 'pronamic_ideal' ).$badge,
471 471
 			'edit_payments',
472 472
 			'pronamic_ideal',
473 473
 			array( $this, 'page_dashboard' ),
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 		add_submenu_page(
478 478
 			'pronamic_ideal',
479 479
 			__( 'Payments', 'pronamic_ideal' ),
480
-			__( 'Payments', 'pronamic_ideal' ) . $badge,
480
+			__( 'Payments', 'pronamic_ideal' ).$badge,
481 481
 			'edit_payments',
482 482
 			'edit.php?post_type=pronamic_payment'
483 483
 		);
@@ -528,8 +528,8 @@  discard block
 block discarded – undo
528 528
 
529 529
 		global $submenu;
530 530
 
531
-		if ( isset( $submenu['pronamic_ideal'] ) ) {
532
-			$submenu['pronamic_ideal'][0][0] = __( 'Dashboard', 'pronamic_ideal' ); // WPCS: override ok.
531
+		if ( isset( $submenu[ 'pronamic_ideal' ] ) ) {
532
+			$submenu[ 'pronamic_ideal' ][ 0 ][ 0 ] = __( 'Dashboard', 'pronamic_ideal' ); // WPCS: override ok.
533 533
 		}
534 534
 	}
535 535
 
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
 	public function render_page( $name ) {
564 564
 		$result = false;
565 565
 
566
-		$file = plugin_dir_path( \Pronamic\WordPress\Pay\Plugin::$file ) . 'admin/page-' . $name . '.php';
566
+		$file = plugin_dir_path( \Pronamic\WordPress\Pay\Plugin::$file ).'admin/page-'.$name.'.php';
567 567
 
568 568
 		if ( is_readable( $file ) ) {
569 569
 			include $file;
Please login to merge, or discard this patch.