@@ -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 |
@@ -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() ); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $classes = array( 'nav-tab' ); |
31 | 31 | |
32 | 32 | if ( $current_tab === $tab ) { |
33 | - $classes[] = 'nav-tab-active'; |
|
33 | + $classes[ ] = 'nav-tab-active'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $url = add_query_arg( |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | <?php |
57 | 57 | |
58 | - $file = plugin_dir_path( Plugin::$file ) . 'admin/tab-' . $current_tab . '.php'; |
|
58 | + $file = plugin_dir_path( Plugin::$file ).'admin/tab-'.$current_tab.'.php'; |
|
59 | 59 | |
60 | 60 | if ( is_readable( $file ) ) { |
61 | 61 | include $file; |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | <?php |
14 | 14 | |
15 | -$data = file_get_contents( __DIR__ . '/../other/extensions.json' ); |
|
15 | +$data = file_get_contents( __DIR__.'/../other/extensions.json' ); |
|
16 | 16 | $extensions = json_decode( $data ); |
17 | 17 | |
18 | 18 | ?> |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | ?> |
47 | 47 | |
48 | - <?php $alternate = ! $alternate; ?> |
|
48 | + <?php $alternate = !$alternate; ?> |
|
49 | 49 | |
50 | 50 | <tr<?php if ( $alternate ) : ?> class="alternate"<?php endif; ?>> |
51 | 51 | <td> |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @package Pronamic\WordPress\Pay |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
11 | +if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
12 | 12 | exit; |
13 | 13 | } |
14 | 14 |