@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | * @return array |
64 | 64 | */ |
65 | 65 | public function exclude_payment_comment_notes( $clauses, $query ) { |
66 | - $type = $query->query_vars['type']; |
|
66 | + $type = $query->query_vars[ 'type' ]; |
|
67 | 67 | |
68 | 68 | // Ignore payment notes comments if it's not specifically requested. |
69 | 69 | if ( 'payment_note' !== $type ) { |
70 | - $clauses['where'] .= " AND comment_type != 'payment_note'"; |
|
70 | + $clauses[ 'where' ] .= " AND comment_type != 'payment_note'"; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $clauses; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | break; |
112 | 112 | } |
113 | 113 | |
114 | - if ( ! empty( $page_id ) ) { |
|
114 | + if ( !empty( $page_id ) ) { |
|
115 | 115 | $page_url = get_permalink( $page_id ); |
116 | 116 | |
117 | 117 | if ( false !== $page_url ) { |
@@ -56,19 +56,19 @@ |
||
56 | 56 | |
57 | 57 | <tr> |
58 | 58 | <td> |
59 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?> |
|
59 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?> |
|
60 | 60 | </td> |
61 | 61 | <td> |
62 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?> |
|
62 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?> |
|
63 | 63 | </td> |
64 | 64 | <td> |
65 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?> |
|
65 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?> |
|
66 | 66 | </td> |
67 | 67 | <td> |
68 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?> |
|
68 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?> |
|
69 | 69 | </td> |
70 | 70 | <td> |
71 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?> |
|
71 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?> |
|
72 | 72 | </td> |
73 | 73 | <td> |
74 | 74 | <?php echo empty( $payment->start_date ) ? '—' : esc_html( $payment->start_date->format_i18n() ); ?> |