Passed
Branch develop (73db2f)
by Remco
04:13
created
admin/tab-gateways.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,16 +47,20 @@
 block discarded – undo
47 47
 					// Provider.
48 48
 					if ( count( $name ) > 1 ) :
49 49
 						$provider = array_shift( $name );
50
-					else :
50
+					else {
51
+						:
51 52
 						$provider_name = explode( '(', $name[0] );
53
+					}
52 54
 
53 55
 						$provider = array_shift( $provider_name );
54 56
 					endif;
55 57
 
56 58
 					if ( $current_provider === $integration->provider ) :
57 59
 						$provider = '';
58
-					else :
60
+					else {
61
+						:
59 62
 						$current_provider = $integration->provider;
63
+					}
60 64
 
61 65
 						$alternate = ! $alternate;
62 66
 					endif;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
 		foreach ( $pronamic_pay_providers as $provider ) :
39 39
 
40
-			if ( isset( $provider['integrations'] ) && is_array( $provider['integrations'] ) ) :
40
+			if ( isset( $provider[ 'integrations' ] ) && is_array( $provider[ 'integrations' ] ) ) :
41 41
 
42
-				foreach ( $provider['integrations'] as $integration ) :
42
+				foreach ( $provider[ 'integrations' ] as $integration ) :
43 43
 					$name = $integration->get_name();
44 44
 
45 45
 					$name = explode( ' - ', $name );
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 					if ( count( $name ) > 1 ) :
49 49
 						$provider = array_shift( $name );
50 50
 					else :
51
-						$provider_name = explode( '(', $name[0] );
51
+						$provider_name = explode( '(', $name[ 0 ] );
52 52
 
53 53
 						$provider = array_shift( $provider_name );
54 54
 					endif;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 					else :
59 59
 						$current_provider = $integration->provider;
60 60
 
61
-						$alternate = ! $alternate;
61
+						$alternate = !$alternate;
62 62
 					endif;
63 63
 
64 64
 					$name = implode( '', $name );
Please login to merge, or discard this patch.
admin/meta-box-subscription-payments.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,16 @@
 block discarded – undo
22 22
 
23 23
 	<?php esc_html_e( 'No payments found.', 'pronamic_ideal' ); ?>
24 24
 
25
-<?php else : ?>
25
+<?php else {
26
+	: ?>
26 27
 
27 28
 	<table class="pronamic-pay-table widefat">
28 29
 		<thead>
29 30
 			<tr>
30 31
 				<th scope="col">
31
-					<span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" data-tip="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); ?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span>
32
+					<span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" data-tip="<?php esc_attr_e( 'Status', 'pronamic_ideal' );
33
+}
34
+?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span>
32 35
 				</th>
33 36
 				<th scope="col"><?php esc_html_e( 'Payment', 'pronamic_ideal' ); ?></th>
34 37
 				<th scope="col"><?php esc_html_e( 'Transaction', 'pronamic_ideal' ); ?></th>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,19 +52,19 @@
 block discarded – undo
52 52
 
53 53
 				<tr>
54 54
 					<td>
55
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?>
55
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?>
56 56
 					</td>
57 57
 					<td>
58
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?>
58
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?>
59 59
 					</td>
60 60
 					<td>
61
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?>
61
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?>
62 62
 					</td>
63 63
 					<td>
64
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?>
64
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?>
65 65
 					</td>
66 66
 					<td>
67
-						<?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?>
67
+						<?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?>
68 68
 					</td>
69 69
 					<td>
70 70
 						<?php
Please login to merge, or discard this patch.
admin/meta-box-payment-subscription.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,10 +90,13 @@
 block discarded – undo
90 90
 		</tr>
91 91
 	</table>
92 92
 
93
-<?php else : ?>
93
+<?php else {
94
+	: ?>
94 95
 
95 96
 	<p>
96
-		<?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?>
97
+		<?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' );
98
+}
99
+?>
97 100
 	</p>
98 101
 
99 102
 <?php endif; ?>
Please login to merge, or discard this patch.
admin/meta-box-payment-log.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 				<?php
35 35
 
36
-				$html_id    = 'comment-' . $comment->comment_ID;
36
+				$html_id    = 'comment-'.$comment->comment_ID;
37 37
 				$html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
38 38
 
39 39
 				?>
Please login to merge, or discard this patch.
admin/meta-box-subscription-log.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 				<?php
35 35
 
36
-				$html_id    = 'comment-' . $comment->comment_ID;
36
+				$html_id    = 'comment-'.$comment->comment_ID;
37 37
 				$html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) );
38 38
 
39 39
 				?>
Please login to merge, or discard this patch.
classes/Admin/GatewaySettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 		$classes = apply_filters( 'pronamic_pay_gateway_settings', array() );
36 36
 
37 37
 		foreach ( $classes as $class ) {
38
-			$this->settings[] = new $class();
38
+			$this->settings[ ] = new $class();
39 39
 		}
40 40
 	}
41 41
 
Please login to merge, or discard this patch.
classes/Payments/Items.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	 * @param Item $item The item to add.
50 50
 	 */
51 51
 	public function addItem( Item $item ) {
52
-		$this->items[] = $item;
52
+		$this->items[ ] = $item;
53 53
 	}
54 54
 
55 55
 	/**
Please login to merge, or discard this patch.
admin/methods-wp-admin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,23 +28,23 @@
 block discarded – undo
28 28
 				<td>
29 29
 					<?php
30 30
 
31
-					if ( isset( $method['icon'] ) ) {
32
-						printf( '<img src="%s" alt="" />', esc_attr( $method['icon'] ) );
31
+					if ( isset( $method[ 'icon' ] ) ) {
32
+						printf( '<img src="%s" alt="" />', esc_attr( $method[ 'icon' ] ) );
33 33
 					}
34 34
 
35 35
 					?>
36 36
 				</td>
37 37
 				<td>
38
-					<?php echo esc_html( $method['name'] ); ?>
38
+					<?php echo esc_html( $method[ 'name' ] ); ?>
39 39
 				</td>
40 40
 				<td>
41 41
 					<?php
42 42
 
43
-					if ( isset( $method['url'] ) ) {
43
+					if ( isset( $method[ 'url' ] ) ) {
44 44
 						printf(
45 45
 							'<a href="%s" target="_blank">%s</a>',
46
-							esc_attr( $method['url'] ),
47
-							esc_html( $method['url'] )
46
+							esc_attr( $method[ 'url' ] ),
47
+							esc_html( $method[ 'url' ] )
48 48
 						);
49 49
 					}
50 50
 
Please login to merge, or discard this patch.
views/ideal-test-cases.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 						sprintf(
67 67
 							/* translators: %s: formatted amount */
68 68
 							__( 'Transaction with <code>amount</code> = %s:', 'pronamic_ideal' ),
69
-							esc_html( IDeal::format_amount( $data['amount'] ) )
69
+							esc_html( IDeal::format_amount( $data[ 'amount' ] ) )
70 70
 						),
71 71
 						array(
72 72
 							'code' => array(),
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 					?>
77 77
 				</td>
78 78
 				<td>
79
-					<?php echo esc_html( $data['result'] ); ?>
79
+					<?php echo esc_html( $data[ 'result' ] ); ?>
80 80
 				</td>
81 81
 			</tr>
82 82
 
Please login to merge, or discard this patch.