@@ -366,11 +366,11 @@ discard block |
||
366 | 366 | * @return array |
367 | 367 | */ |
368 | 368 | public function exclude_subscription_comment_notes( $clauses, $query ) { |
369 | - $type = $query->query_vars['type']; |
|
369 | + $type = $query->query_vars[ 'type' ]; |
|
370 | 370 | |
371 | 371 | // Ignore subscription notes comments if it's not specifically requested. |
372 | 372 | if ( 'subscription_note' !== $type ) { |
373 | - $clauses['where'] .= " AND comment_type != 'subscription_note'"; |
|
373 | + $clauses[ 'where' ] .= " AND comment_type != 'subscription_note'"; |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | return $clauses; |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | * @return array |
592 | 592 | */ |
593 | 593 | public function register_privacy_exporter( $exporters ) { |
594 | - $exporters['pronamic-pay-subscriptions'] = array( |
|
594 | + $exporters[ 'pronamic-pay-subscriptions' ] = array( |
|
595 | 595 | 'exporter_friendly_name' => __( 'Pronamic Pay Subscriptions', 'pronamic_ideal' ), |
596 | 596 | 'callback' => array( $this, 'privacy_export' ), |
597 | 597 | ); |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | } |
635 | 635 | |
636 | 636 | // Add meta to export data. |
637 | - $data[] = array( |
|
637 | + $data[ ] = array( |
|
638 | 638 | 'name' => $meta_key, |
639 | 639 | 'value' => $meta_value, |
640 | 640 | ); |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | |
643 | 643 | // Add item to export data. |
644 | 644 | if ( ! empty( $data ) ) { |
645 | - $items[] = array( |
|
645 | + $items[ ] = array( |
|
646 | 646 | 'group_id' => 'pronamic-subscriptions', |
647 | 647 | 'group_label' => __( 'Subscriptions', 'pronamic_ideal' ), |
648 | 648 | 'item_id' => 'pronamic-subscription-' . $subscription->get_id(), |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | ); |
751 | 751 | |
752 | 752 | if ( ! $cli_test ) { |
753 | - $args['meta_query'][] = array( |
|
753 | + $args[ 'meta_query' ][ ] = array( |
|
754 | 754 | 'key' => '_pronamic_subscription_next_payment', |
755 | 755 | 'compare' => '<=', |
756 | 756 | 'value' => current_time( 'mysql', true ), |