@@ -79,11 +79,11 @@ discard block |
||
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; |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @return array |
187 | 187 | */ |
188 | 188 | public function register_privacy_exporter( $exporters ) { |
189 | - $exporters['pronamic-pay-payments'] = array( |
|
189 | + $exporters[ 'pronamic-pay-payments' ] = array( |
|
190 | 190 | 'exporter_friendly_name' => __( 'Pronamic Pay Payments', 'pronamic_ideal' ), |
191 | 191 | 'callback' => array( $this, 'privacy_export' ), |
192 | 192 | ); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | // Add meta to export data. |
232 | - $data[] = array( |
|
232 | + $data[ ] = array( |
|
233 | 233 | 'name' => $meta_key, |
234 | 234 | 'value' => $meta_value, |
235 | 235 | ); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | |
238 | 238 | // Add item to export data. |
239 | 239 | if ( ! empty( $data ) ) { |
240 | - $items[] = array( |
|
240 | + $items[ ] = array( |
|
241 | 241 | 'group_id' => 'pronamic-payments', |
242 | 242 | 'group_label' => __( 'Payments', 'pronamic_ideal' ), |
243 | 243 | 'item_id' => 'pronamic-payment-' . $payment->get_id(), |