@@ -312,7 +312,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 ), |