@@ -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> |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @package Pronamic\WordPress\Pay |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! defined( 'WPINC' ) ) { |
|
11 | +if ( !defined( 'WPINC' ) ) { |
|
12 | 12 | die; |
13 | 13 | } |
14 | 14 |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | |
38 | 38 | foreach ( $pronamic_pay_providers as $provider ) : |
39 | 39 | |
40 | - if ( isset( $provider['integrations'] ) && is_array( $provider['integrations'] ) ) : |
|
40 | + if ( isset( $provider[ 'integrations' ] ) && is_array( $provider[ 'integrations' ] ) ) : |
|
41 | 41 | |
42 | - foreach ( $provider['integrations'] as $integration ) : |
|
42 | + foreach ( $provider[ 'integrations' ] as $integration ) : |
|
43 | 43 | $name = $integration->get_name(); |
44 | 44 | |
45 | 45 | $name = explode( ' - ', $name ); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | if ( count( $name ) > 1 ) : |
49 | 49 | $provider = array_shift( $name ); |
50 | 50 | else : |
51 | - $provider_name = explode( '(', $name[0] ); |
|
51 | + $provider_name = explode( '(', $name[ 0 ] ); |
|
52 | 52 | |
53 | 53 | $provider = array_shift( $provider_name ); |
54 | 54 | endif; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | else : |
59 | 59 | $current_provider = $integration->provider; |
60 | 60 | |
61 | - $alternate = ! $alternate; |
|
61 | + $alternate = !$alternate; |
|
62 | 62 | endif; |
63 | 63 | |
64 | 64 | $name = implode( '', $name ); |
@@ -52,19 +52,19 @@ |
||
52 | 52 | |
53 | 53 | <tr> |
54 | 54 | <td> |
55 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?> |
|
55 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_status', $payment_id ); ?> |
|
56 | 56 | </td> |
57 | 57 | <td> |
58 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?> |
|
58 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_title', $payment_id ); ?> |
|
59 | 59 | </td> |
60 | 60 | <td> |
61 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?> |
|
61 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_transaction', $payment_id ); ?> |
|
62 | 62 | </td> |
63 | 63 | <td> |
64 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?> |
|
64 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_amount', $payment_id ); ?> |
|
65 | 65 | </td> |
66 | 66 | <td> |
67 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?> |
|
67 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_date', $payment_id ); ?> |
|
68 | 68 | </td> |
69 | 69 | <td> |
70 | 70 | <?php |
@@ -628,47 +628,47 @@ discard block |
||
628 | 628 | |
629 | 629 | <?php foreach ( $providers as $provider ) : ?> |
630 | 630 | |
631 | - <?php if ( isset( $provider['resources'] ) && ! empty( $provider['resources'] ) ) : ?> |
|
631 | + <?php if ( isset( $provider[ 'resources' ] ) && !empty( $provider[ 'resources' ] ) ) : ?> |
|
632 | 632 | |
633 | 633 | <tr class="alternate"> |
634 | 634 | <td colspan="4"> |
635 | - <strong><?php echo esc_html( $provider['name'] ); ?></strong> |
|
636 | - <small><a href="<?php echo esc_attr( $provider['url'] ); ?>"><?php echo esc_html( $provider['url'] ); ?></a></small> |
|
635 | + <strong><?php echo esc_html( $provider[ 'name' ] ); ?></strong> |
|
636 | + <small><a href="<?php echo esc_attr( $provider[ 'url' ] ); ?>"><?php echo esc_html( $provider[ 'url' ] ); ?></a></small> |
|
637 | 637 | </td> |
638 | 638 | </tr> |
639 | 639 | |
640 | - <?php foreach ( $provider['resources'] as $resource ) : ?> |
|
640 | + <?php foreach ( $provider[ 'resources' ] as $resource ) : ?> |
|
641 | 641 | |
642 | 642 | <?php |
643 | 643 | |
644 | 644 | $href = null; |
645 | 645 | |
646 | - if ( isset( $resource['path'] ) ) { |
|
647 | - $href = plugins_url( $resource['path'], Plugin::$file ); |
|
646 | + if ( isset( $resource[ 'path' ] ) ) { |
|
647 | + $href = plugins_url( $resource[ 'path' ], Plugin::$file ); |
|
648 | 648 | } |
649 | 649 | |
650 | - if ( isset( $resource['url'] ) ) { |
|
651 | - $href = $resource['url']; |
|
650 | + if ( isset( $resource[ 'url' ] ) ) { |
|
651 | + $href = $resource[ 'url' ]; |
|
652 | 652 | } |
653 | 653 | |
654 | 654 | $classes = array(); |
655 | 655 | |
656 | - if ( isset( $resource['deprecated'] ) ) { |
|
657 | - $classes[] = 'deprecated'; |
|
656 | + if ( isset( $resource[ 'deprecated' ] ) ) { |
|
657 | + $classes[ ] = 'deprecated'; |
|
658 | 658 | } |
659 | 659 | |
660 | 660 | ?> |
661 | 661 | <tr class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"> |
662 | 662 | <td> |
663 | 663 | <a href="<?php echo esc_attr( $href ); ?>"> |
664 | - <?php echo esc_html( $resource['name'] ); ?> |
|
664 | + <?php echo esc_html( $resource[ 'name' ] ); ?> |
|
665 | 665 | </a> |
666 | 666 | </td> |
667 | 667 | <td> |
668 | 668 | <?php |
669 | 669 | |
670 | - if ( isset( $resource['date'] ) ) { |
|
671 | - echo esc_html( $resource['date']->format( 'd-m-Y' ) ); |
|
670 | + if ( isset( $resource[ 'date' ] ) ) { |
|
671 | + echo esc_html( $resource[ 'date' ]->format( 'd-m-Y' ) ); |
|
672 | 672 | } |
673 | 673 | |
674 | 674 | ?> |
@@ -676,8 +676,8 @@ discard block |
||
676 | 676 | <td> |
677 | 677 | <?php |
678 | 678 | |
679 | - if ( isset( $resource['version'] ) ) { |
|
680 | - echo esc_html( $resource['version'] ); |
|
679 | + if ( isset( $resource[ 'version' ] ) ) { |
|
680 | + echo esc_html( $resource[ 'version' ] ); |
|
681 | 681 | } |
682 | 682 | |
683 | 683 | ?> |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'pronamic_pay_check_status' => true, |
52 | 52 | ), admin_url( 'post.php' ) |
53 | 53 | ), |
54 | - 'pronamic_payment_check_status_' . $post->ID |
|
54 | + 'pronamic_payment_check_status_'.$post->ID |
|
55 | 55 | ); |
56 | 56 | |
57 | 57 | printf( |
@@ -63,7 +63,7 @@ |
||
63 | 63 | <?php esc_html_e( 'Transaction ID', 'pronamic_ideal' ); ?> |
64 | 64 | </th> |
65 | 65 | <td> |
66 | - <?php do_action( 'manage_' . $post_type . '_posts_custom_column', 'pronamic_payment_transaction', $post_id ); ?> |
|
66 | + <?php do_action( 'manage_'.$post_type.'_posts_custom_column', 'pronamic_payment_transaction', $post_id ); ?> |
|
67 | 67 | </td> |
68 | 68 | </tr> |
69 | 69 | <tr> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | // If this file is called directly, abort. |
12 | -if ( ! defined( 'WPINC' ) ) { |
|
12 | +if ( !defined( 'WPINC' ) ) { |
|
13 | 13 | die; |
14 | 14 | } |
15 | 15 |
@@ -89,10 +89,10 @@ |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | // Add empty input field. |
92 | - $choices[] = ''; |
|
92 | + $choices[ ] = ''; |
|
93 | 93 | |
94 | 94 | foreach ( $choices as $i => $amount ) { |
95 | - if ( ! empty( $amount ) ) { |
|
95 | + if ( !empty( $amount ) ) { |
|
96 | 96 | $decimals = ( $amount % 100 > 0 ? 2 : 0 ); |
97 | 97 | |
98 | 98 | $amount = number_format( ( $amount / 100 ), $decimals, pronamic_pay_get_decimal_separator(), pronamic_pay_get_thousands_separator() ); |