Passed
Push — develop ( 8ad0f0...975412 )
by Remco
04:29
created
classes/Admin/AdminPaymentPostType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -545,7 +545,7 @@
 block discarded – undo
545 545
 		// @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352797&filters[translation_id]=37948900
546 546
 		$scheduled_date = date_i18n( __( 'M j, Y @ H:i', 'pronamic_ideal' ), strtotime( $post->post_date ) );
547 547
 
548
-		$messages[ self::POST_TYPE ] = array(
548
+		$messages[self::POST_TYPE] = array(
549 549
 			0  => '', // Unused. Messages start at index 1.
550 550
 			1  => __( 'Payment updated.', 'pronamic_ideal' ),
551 551
 			// @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352799&filters[translation_id]=37947229.
Please login to merge, or discard this patch.
classes/Admin/GatewaySettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,13 +131,13 @@
 block discarded – undo
131 131
 		foreach ( $supported as $payment_method ) {
132 132
 			$name = PaymentMethods::get_name( $payment_method );
133 133
 
134
-			$payment_methods[ $payment_method ] = array(
134
+			$payment_methods[$payment_method] = array(
135 135
 				'id'        => $payment_method,
136 136
 				'name'      => $name,
137 137
 				'available' => in_array( $payment_method, $available, true ),
138 138
 			);
139 139
 
140
-			$sort[ $payment_method ] = $name;
140
+			$sort[$payment_method] = $name;
141 141
 		}
142 142
 
143 143
 		$sort_flags = SORT_STRING;
Please login to merge, or discard this patch.
classes/Admin/AdminReports.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -343,8 +343,8 @@
 block discarded – undo
343 343
 			$key = $date->format( 'Y-m' );
344 344
 
345 345
 			$value = 0;
346
-			if ( isset( $data[ $key ] ) ) {
347
-				$value = (float) $data[ $key ]->value;
346
+			if ( isset( $data[$key] ) ) {
347
+				$value = (float) $data[$key]->value;
348 348
 			}
349 349
 
350 350
 			$report[] = array(
Please login to merge, or discard this patch.
classes/Admin/AdminModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -596,10 +596,10 @@
 block discarded – undo
596 596
 
597 597
 			if ( is_array( $class ) ) {
598 598
 				foreach ( $class as $c ) {
599
-					$classes[ $c ] = $c;
599
+					$classes[$c] = $c;
600 600
 				}
601 601
 			} else {
602
-				$classes[ $class ] = $class;
602
+				$classes[$class] = $class;
603 603
 			}
604 604
 		}
605 605
 
Please login to merge, or discard this patch.
classes/Admin/AdminPaymentBulkActions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 			// Make sure gateway supports `payment_status_request` feature.
103 103
 			$config_id = $payment->config_id;
104 104
 
105
-			if ( ! isset( $gateways[ $config_id ] ) ) {
106
-				$gateways[ $config_id ] = \Pronamic\WordPress\Pay\Plugin::get_gateway( $config_id );
105
+			if ( ! isset( $gateways[$config_id] ) ) {
106
+				$gateways[$config_id] = \Pronamic\WordPress\Pay\Plugin::get_gateway( $config_id );
107 107
 
108
-				if ( $gateways[ $config_id ] && ! $gateways[ $config_id ]->supports( 'payment_status_request' ) ) {
108
+				if ( $gateways[$config_id] && ! $gateways[$config_id]->supports( 'payment_status_request' ) ) {
109 109
 					$unsupported_gateways[] = $config_id;
110 110
 				}
111 111
 			}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 				$gateways = explode( ',', $unsupported );
171 171
 
172 172
 				foreach ( $gateways as $index => $config_id ) {
173
-					$gateways[ $index ] = get_the_title( $config_id );
173
+					$gateways[$index] = get_the_title( $config_id );
174 174
 				}
175 175
 
176 176
 				$message = sprintf( __( 'Requesting the current payment status is unsupported by %s.', 'pronamic_ideal' ), implode( ', ', $gateways ) );
Please login to merge, or discard this patch.
classes/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 		foreach ( $query->posts as $post ) {
487 487
 			$id = $post->ID;
488 488
 
489
-			$options[ $id ] = sprintf(
489
+			$options[$id] = sprintf(
490 490
 				'%s (%s)',
491 491
 				get_the_title( $id ),
492 492
 				get_post_meta( $id, '_pronamic_gateway_mode', true )
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
 		foreach ( $pages as $key => $label ) {
769 769
 			$id = sprintf( 'pronamic_pay_%s_page_id', $key );
770 770
 
771
-			$return[ $id ] = $label;
771
+			$return[$id] = $label;
772 772
 		}
773 773
 
774 774
 		return $return;
Please login to merge, or discard this patch.
classes/Forms/FormPostType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@
 block discarded – undo
311 311
 			foreach ( $data['_pronamic_payment_form_amount_choices'] as $i => $amount ) {
312 312
 				$amount = \Pronamic\WordPress\Pay\Core\Util::string_to_amount( $amount );
313 313
 
314
-				$data['_pronamic_payment_form_amount_choices'][ $i ] = \Pronamic\WordPress\Pay\Core\Util::amount_to_cents( $amount );
314
+				$data['_pronamic_payment_form_amount_choices'][$i] = \Pronamic\WordPress\Pay\Core\Util::amount_to_cents( $amount );
315 315
 			}
316 316
 
317 317
 			// Remove empty choices.
Please login to merge, or discard this patch.
classes/Payments/Payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -585,7 +585,7 @@
 block discarded – undo
585 585
 	 * @param string $value Meta value.
586 586
 	 */
587 587
 	public function set_meta( $key, $value ) {
588
-		$this->meta[ $key ] = $value;
588
+		$this->meta[$key] = $value;
589 589
 	}
590 590
 
591 591
 	/**
Please login to merge, or discard this patch.
classes/GatewayIntegrations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 			'test' => 'https://abnamro-test.ideal-payment.de/',
77 77
 			'live' => 'https://abnamro.ideal-payment.de/',
78 78
 		);
79
-		$abn_amro_ideal_zelfbouw_v3->provider      = 'abnamro';
79
+		$abn_amro_ideal_zelfbouw_v3->provider = 'abnamro';
80 80
 
81 81
 		// Deutsche Bank - iDEAL via Ogone.
82 82
 		$deutsche_bank_ideal_ogone = new Gateways\Ingenico\OrderStandardEasy\Integration();
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 			'test' => 'https://myideal.test.db.com/',
95 95
 			'live' => 'https://myideal.db.com/',
96 96
 		);
97
-		$deutsche_bank_ideal_expert_v3->provider      = 'deutschebank';
97
+		$deutsche_bank_ideal_expert_v3->provider = 'deutschebank';
98 98
 
99 99
 		// Fibonacci ORANGE.
100 100
 		$fibonacci_orange = new Gateways\Icepay\Integration();
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
 		// Set integrations.
232 232
 		foreach ( $gateways as $integration ) {
233
-			$integrations[ $integration->get_id() ] = $integration;
233
+			$integrations[$integration->get_id()] = $integration;
234 234
 		}
235 235
 
236 236
 		return $integrations;
Please login to merge, or discard this patch.