@@ -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 ) { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | [](https://scrutinizer-ci.com/code-intelligence) |
21 | 21 | [](https://codecov.io/gh/pronamic/wp-pronamic-ideal) |
22 | 22 | |
23 | -<?php include __DIR__ . '/../general/description-short.php'; ?> |
|
23 | +<?php include __DIR__.'/../general/description-short.php'; ?> |
|
24 | 24 | |
25 | 25 | |
26 | 26 | ## Gateways |
@@ -43,4 +43,4 @@ discard block |
||
43 | 43 | |
44 | 44 | ## Links |
45 | 45 | |
46 | -<?php include __DIR__ . '/../general/links.php'; ?> |
|
46 | +<?php include __DIR__.'/../general/links.php'; ?> |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $timestamp = wp_next_scheduled( 'pronamic_pay_license_check' ); |
59 | 59 | |
60 | 60 | if ( false !== $timestamp ) { |
61 | - $date = new \Pronamic\WordPress\Pay\DateTime( '@' . $timestamp, new DateTimeZone( 'UTC' ) ); |
|
61 | + $date = new \Pronamic\WordPress\Pay\DateTime( '@'.$timestamp, new DateTimeZone( 'UTC' ) ); |
|
62 | 62 | |
63 | 63 | echo esc_html( $date->format_i18n() ); |
64 | 64 | } else { |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | $version = curl_version(); |
246 | 246 | // @codingStandardsIgnoreEnd |
247 | 247 | |
248 | - if ( isset( $version['version'] ) ) { |
|
249 | - echo esc_html( $version['version'] ); |
|
248 | + if ( isset( $version[ 'version' ] ) ) { |
|
249 | + echo esc_html( $version[ 'version' ] ); |
|
250 | 250 | } |
251 | 251 | } |
252 | 252 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | |
337 | 337 | $data = get_transient( 'pronamic_pay_ideal_issuers_status' ); |
338 | 338 | |
339 | -if ( ! $data ) { |
|
339 | +if ( !$data ) { |
|
340 | 340 | |
341 | 341 | $url = 'http://www.ideal-status.nl/static/issuers_current.json'; |
342 | 342 | |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | $status_data = null; |
346 | 346 | |
347 | - if ( ! is_wp_error( $response ) ) { |
|
347 | + if ( !is_wp_error( $response ) ) { |
|
348 | 348 | if ( 200 === wp_remote_retrieve_response_code( $response ) ) { |
349 | 349 | $body = wp_remote_retrieve_body( $response ); |
350 | 350 | |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | |
410 | 410 | <?php foreach ( $data as $status ) : ?> |
411 | 411 | |
412 | - <?php $alternate = ! $alternate; ?> |
|
412 | + <?php $alternate = !$alternate; ?> |
|
413 | 413 | |
414 | 414 | <tr<?php if ( $alternate ) : ?> class="alternate"<?php endif; ?>> |
415 | 415 | <td> |