Passed
Push — develop ( 8ebc76...5a0ded )
by Reüel
05:00 queued 17s
created
classes/Subscriptions/SubscriptionsModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 		// Handle renewals.
310 310
 		if ( is_array( $renewal ) ) {
311 311
 			$payment->recurring = false;
312
-			$payment->issuer    = $renewal['issuer'];
312
+			$payment->issuer    = $renewal[ 'issuer' ];
313 313
 		}
314 314
 
315 315
 		// Start payment.
@@ -353,11 +353,11 @@  discard block
 block discarded – undo
353 353
 	 * @return array
354 354
 	 */
355 355
 	public function exclude_subscription_comment_notes( $clauses, $query ) {
356
-		$type = $query->query_vars['type'];
356
+		$type = $query->query_vars[ 'type' ];
357 357
 
358 358
 		// Ignore subscription notes comments if it's not specifically requested.
359 359
 		if ( 'subscription_note' !== $type ) {
360
-			$clauses['where'] .= " AND comment_type != 'subscription_note'";
360
+			$clauses[ 'where' ] .= " AND comment_type != 'subscription_note'";
361 361
 		}
362 362
 
363 363
 		return $clauses;
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 			return $exporters;
584 584
 		}
585 585
 
586
-		$exporters['pronamic-pay-payments'] = array(
586
+		$exporters[ 'pronamic-pay-payments' ] = array(
587 587
 			'exporter_friendly_name' => __( 'Pronamic Pay', 'pronamic_ideal' ),
588 588
 			'callback'               => array( $this, 'privacy_export' ),
589 589
 		);
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
 				}
627 627
 
628 628
 				// Add meta to export data.
629
-				$data[] = array(
629
+				$data[ ] = array(
630 630
 					'name'  => $meta_key,
631 631
 					'value' => $meta_value,
632 632
 				);
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
 
635 635
 			// Add item to export data.
636 636
 			if ( ! empty( $data ) ) {
637
-				$items[] = array(
637
+				$items[ ] = array(
638 638
 					'group_id'    => 'pronamic-subscriptions',
639 639
 					'group_label' => __( 'Subscriptions', 'pronamic_ideal' ),
640 640
 					'item_id'     => 'pronamic-subscription-' . $subscription->get_id(),
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
 		);
743 743
 
744 744
 		if ( ! $cli_test ) {
745
-			$args['meta_query'][] = array(
745
+			$args[ 'meta_query' ][ ] = array(
746 746
 				'key'     => '_pronamic_subscription_next_payment',
747 747
 				'compare' => '<=',
748 748
 				'value'   => current_time( 'mysql', true ),
Please login to merge, or discard this patch.
classes/Payments/PaymentsModule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 	 * @return array
80 80
 	 */
81 81
 	public function exclude_payment_comment_notes( $clauses, $query ) {
82
-		$type = $query->query_vars['type'];
82
+		$type = $query->query_vars[ 'type' ];
83 83
 
84 84
 		// Ignore payment notes comments if it's not specifically requested.
85 85
 		if ( 'payment_note' !== $type ) {
86
-			$clauses['where'] .= " AND comment_type != 'payment_note'";
86
+			$clauses[ 'where' ] .= " AND comment_type != 'payment_note'";
87 87
 		}
88 88
 
89 89
 		return $clauses;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 			return $exporters;
191 191
 		}
192 192
 
193
-		$exporters['pronamic-pay-payments'] = array(
193
+		$exporters[ 'pronamic-pay-payments' ] = array(
194 194
 			'exporter_friendly_name' => __( 'Pronamic Pay', 'pronamic_ideal' ),
195 195
 			'callback'               => array( $this, 'privacy_export' ),
196 196
 		);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 				}
234 234
 
235 235
 				// Add meta to export data.
236
-				$data[] = array(
236
+				$data[ ] = array(
237 237
 					'name'  => $meta_key,
238 238
 					'value' => $meta_value,
239 239
 				);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
 			// Add item to export data.
243 243
 			if ( ! empty( $data ) ) {
244
-				$items[] = array(
244
+				$items[ ] = array(
245 245
 					'group_id'    => 'pronamic-payments',
246 246
 					'group_label' => __( 'Payments', 'pronamic_ideal' ),
247 247
 					'item_id'     => 'pronamic-payment-' . $payment->get_id(),
Please login to merge, or discard this patch.
includes/functions.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	$results = $wpdb->get_results( $db_query ); // WPCS: unprepared SQL ok.
86 86
 
87 87
 	foreach ( $results as $result ) {
88
-		$payments[] = new Payment( $result->post_id );
88
+		$payments[ ] = new Payment( $result->post_id );
89 89
 	}
90 90
 
91 91
 	return $payments;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	$results = $wpdb->get_results( $db_query ); // WPCS: unprepared SQL ok.
195 195
 
196 196
 	foreach ( $results as $result ) {
197
-		$subscriptions[] = new Subscription( $result->post_id );
197
+		$subscriptions[ ] = new Subscription( $result->post_id );
198 198
 	}
199 199
 
200 200
 	return $subscriptions;
@@ -210,13 +210,13 @@  discard block
 block discarded – undo
210 210
 
211 211
 	foreach ( $pronamic_ideal->gateway_integrations as $integration ) {
212 212
 		if ( isset( $pronamic_pay_providers[ $integration->provider ] ) ) {
213
-			$provider =& $pronamic_pay_providers[ $integration->provider ];
213
+			$provider = & $pronamic_pay_providers[ $integration->provider ];
214 214
 
215
-			if ( ! isset( $provider['integrations'] ) ) {
216
-				$provider['integrations'] = array();
215
+			if ( ! isset( $provider[ 'integrations' ] ) ) {
216
+				$provider[ 'integrations' ] = array();
217 217
 			}
218 218
 
219
-			$provider['integrations'][] = $integration;
219
+			$provider[ 'integrations' ][ ] = $integration;
220 220
 		}
221 221
 	}
222 222
 }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 	if ( false === $separator ) {
272 272
 		// WordPress locale number format was introduced in WordPress version 2.3.
273 273
 		// @see https://github.com/WordPress/WordPress/blob/2.3/wp-includes/locale.php#L90-L100.
274
-		$separator = $wp_locale->number_format['thousands_sep'];
274
+		$separator = $wp_locale->number_format[ 'thousands_sep' ];
275 275
 	}
276 276
 
277 277
 	return $separator;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 	if ( false === $separator ) {
293 293
 		// WordPress locale number format was introduced in WordPress version 2.3.
294 294
 		// @see https://github.com/WordPress/WordPress/blob/2.3/wp-includes/locale.php#L90-L100.
295
-		$separator = $wp_locale->number_format['decimal_point'];
295
+		$separator = $wp_locale->number_format[ 'decimal_point' ];
296 296
 	}
297 297
 
298 298
 	return $separator ? $separator : '.';
Please login to merge, or discard this patch.