Passed
Push — develop ( c92efd...038ff5 )
by Reüel
04:32
created
admin/page-about.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 
17 17
 // If this file is called directly, abort.
18
-if ( ! defined( 'WPINC' ) ) {
18
+if ( !defined( 'WPINC' ) ) {
19 19
 	die;
20 20
 }
21 21
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			$classes = array( 'nav-tab' );
61 61
 
62 62
 			if ( $current_tab === $tab ) {
63
-				$classes[] = 'nav-tab-active';
63
+				$classes[ ] = 'nav-tab-active';
64 64
 			}
65 65
 
66 66
 			$url = add_query_arg( 'tab', $tab );
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 	<?php
80 80
 
81
-	$file = plugin_dir_path( Plugin::$file ) . 'admin/tab-' . $current_tab . '.php';
81
+	$file = plugin_dir_path( Plugin::$file ).'admin/tab-'.$current_tab.'.php';
82 82
 
83 83
 	if ( is_readable( $file ) ) {
84 84
 		include $file;
Please login to merge, or discard this patch.
admin/widget-payments-status-list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 		<?php foreach ( $states as $status => $label ) : ?>
16 16
 
17
-			<li class="<?php echo esc_attr( 'payment_status-' . $status ); ?>">
17
+			<li class="<?php echo esc_attr( 'payment_status-'.$status ); ?>">
18 18
 				<a href="<?php echo esc_attr( add_query_arg( 'post_status', $status, $url ) ); ?>">
19 19
 					<?php
20 20
 
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 
23 23
 					printf( // WPCS: XSS ok.
24 24
 						$label,
25
-						'<strong>' . sprintf(
25
+						'<strong>'.sprintf(
26 26
 							esc_html( _n( '%s payment', '%s payments', $count, 'pronamic_ideal' ) ),
27 27
 							esc_html( number_format_i18n( $count ) )
28
-						) . '</strong>'
28
+						).'</strong>'
29 29
 					);
30 30
 
31 31
 					?>
Please login to merge, or discard this patch.
admin/tab-system_status.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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.
admin/tab-new.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @package   Pronamic\WordPress\Pay
9 9
  */
10 10
 
11
-if ( ! defined( 'WPINC' ) ) {
11
+if ( !defined( 'WPINC' ) ) {
12 12
 	die;
13 13
 }
14 14
 
Please login to merge, or discard this patch.
admin/tab-documentation.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -628,47 +628,47 @@  discard block
 block discarded – undo
628 628
 
629 629
 		<?php foreach ( $providers as $provider ) : ?>
630 630
 
631
-			<?php if ( isset( $provider['resources'] ) && ! empty( $provider['resources'] ) ) : ?>
631
+			<?php if ( isset( $provider[ 'resources' ] ) && !empty( $provider[ 'resources' ] ) ) : ?>
632 632
 
633 633
 				<tr class="alternate">
634 634
 					<td colspan="4">
635
-						<strong><?php echo esc_html( $provider['name'] ); ?></strong>
636
-						<small><a href="<?php echo esc_attr( $provider['url'] ); ?>"><?php echo esc_html( $provider['url'] ); ?></a></small>
635
+						<strong><?php echo esc_html( $provider[ 'name' ] ); ?></strong>
636
+						<small><a href="<?php echo esc_attr( $provider[ 'url' ] ); ?>"><?php echo esc_html( $provider[ 'url' ] ); ?></a></small>
637 637
 					</td>
638 638
 				</tr>
639 639
 
640
-				<?php foreach ( $provider['resources'] as $resource ) : ?>
640
+				<?php foreach ( $provider[ 'resources' ] as $resource ) : ?>
641 641
 
642 642
 					<?php
643 643
 
644 644
 					$href = null;
645 645
 
646
-					if ( isset( $resource['path'] ) ) {
647
-						$href = plugins_url( $resource['path'], Plugin::$file );
646
+					if ( isset( $resource[ 'path' ] ) ) {
647
+						$href = plugins_url( $resource[ 'path' ], Plugin::$file );
648 648
 					}
649 649
 
650
-					if ( isset( $resource['url'] ) ) {
651
-						$href = $resource['url'];
650
+					if ( isset( $resource[ 'url' ] ) ) {
651
+						$href = $resource[ 'url' ];
652 652
 					}
653 653
 
654 654
 					$classes = array();
655 655
 
656
-					if ( isset( $resource['deprecated'] ) ) {
657
-						$classes[] = 'deprecated';
656
+					if ( isset( $resource[ 'deprecated' ] ) ) {
657
+						$classes[ ] = 'deprecated';
658 658
 					}
659 659
 
660 660
 					?>
661 661
 					<tr class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
662 662
 						<td>
663 663
 							<a href="<?php echo esc_attr( $href ); ?>">
664
-								<?php echo esc_html( $resource['name'] ); ?>
664
+								<?php echo esc_html( $resource[ 'name' ] ); ?>
665 665
 							</a>
666 666
 						</td>
667 667
 						<td>
668 668
 							<?php
669 669
 
670
-							if ( isset( $resource['date'] ) ) {
671
-								echo esc_html( $resource['date']->format( 'd-m-Y' ) );
670
+							if ( isset( $resource[ 'date' ] ) ) {
671
+								echo esc_html( $resource[ 'date' ]->format( 'd-m-Y' ) );
672 672
 							}
673 673
 
674 674
 							?>
@@ -676,8 +676,8 @@  discard block
 block discarded – undo
676 676
 						<td>
677 677
 							<?php
678 678
 
679
-							if ( isset( $resource['version'] ) ) {
680
-								echo esc_html( $resource['version'] );
679
+							if ( isset( $resource[ 'version' ] ) ) {
680
+								echo esc_html( $resource[ 'version' ] );
681 681
 							}
682 682
 
683 683
 							?>
Please login to merge, or discard this patch.
admin/meta-box-payment-update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 					'pronamic_pay_check_status' => true,
52 52
 				), admin_url( 'post.php' )
53 53
 			),
54
-			'pronamic_payment_check_status_' . $post->ID
54
+			'pronamic_payment_check_status_'.$post->ID
55 55
 		);
56 56
 
57 57
 		printf(
Please login to merge, or discard this patch.
admin/meta-box-payment-info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 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>
Please login to merge, or discard this patch.
admin/tab-getting-started.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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
 
Please login to merge, or discard this patch.
admin/meta-box-form-options.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			// Add empty input field.
92
-			$choices[] = '';
92
+			$choices[ ] = '';
93 93
 
94 94
 			foreach ( $choices as $i => $amount ) {
95
-				if ( ! empty( $amount ) ) {
95
+				if ( !empty( $amount ) ) {
96 96
 					$decimals = ( $amount % 100 > 0 ? 2 : 0 );
97 97
 
98 98
 					$amount = number_format( ( $amount / 100 ), $decimals, pronamic_pay_get_decimal_separator(), pronamic_pay_get_thousands_separator() );
Please login to merge, or discard this patch.