Passed
Push — develop ( 3adc2f...c1e48d )
by Reüel
04:53
created
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 Payments', '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.
classes/Subscriptions/SubscriptionsModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 		// Handle renewals.
313 313
 		if ( is_array( $renewal ) ) {
314 314
 			$payment->recurring = false;
315
-			$payment->issuer    = $renewal['issuer'];
315
+			$payment->issuer    = $renewal[ 'issuer' ];
316 316
 		}
317 317
 
318 318
 		// Start payment.
@@ -356,11 +356,11 @@  discard block
 block discarded – undo
356 356
 	 * @return array
357 357
 	 */
358 358
 	public function exclude_subscription_comment_notes( $clauses, $query ) {
359
-		$type = $query->query_vars['type'];
359
+		$type = $query->query_vars[ 'type' ];
360 360
 
361 361
 		// Ignore subscription notes comments if it's not specifically requested.
362 362
 		if ( 'subscription_note' !== $type ) {
363
-			$clauses['where'] .= " AND comment_type != 'subscription_note'";
363
+			$clauses[ 'where' ] .= " AND comment_type != 'subscription_note'";
364 364
 		}
365 365
 
366 366
 		return $clauses;
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 			return $exporters;
586 586
 		}
587 587
 
588
-		$exporters['pronamic-pay-subscriptions'] = array(
588
+		$exporters[ 'pronamic-pay-subscriptions' ] = array(
589 589
 			'exporter_friendly_name' => __( 'Pronamic Pay Subscriptions', 'pronamic_ideal' ),
590 590
 			'callback'               => array( $this, 'privacy_export' ),
591 591
 		);
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 				}
629 629
 
630 630
 				// Add meta to export data.
631
-				$data[] = array(
631
+				$data[ ] = array(
632 632
 					'name'  => $meta_key,
633 633
 					'value' => $meta_value,
634 634
 				);
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 
637 637
 			// Add item to export data.
638 638
 			if ( ! empty( $data ) ) {
639
-				$items[] = array(
639
+				$items[ ] = array(
640 640
 					'group_id'    => 'pronamic-subscriptions',
641 641
 					'group_label' => __( 'Subscriptions', 'pronamic_ideal' ),
642 642
 					'item_id'     => 'pronamic-subscription-' . $subscription->get_id(),
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
 		);
745 745
 
746 746
 		if ( ! $cli_test ) {
747
-			$args['meta_query'][] = array(
747
+			$args[ 'meta_query' ][ ] = array(
748 748
 				'key'     => '_pronamic_subscription_next_payment',
749 749
 				'compare' => '<=',
750 750
 				'value'   => current_time( 'mysql', true ),
Please login to merge, or discard this patch.