@@ -74,13 +74,13 @@ |
||
74 | 74 | $files = require $file; |
75 | 75 | |
76 | 76 | foreach ( $files as $identifier => $path ) { |
77 | - if ( ! empty( $GLOBALS['__composer_autoload_files'][ $identifier ] ) ) { |
|
77 | + if ( ! empty( $GLOBALS['__composer_autoload_files'][$identifier] ) ) { |
|
78 | 78 | continue; |
79 | 79 | } |
80 | 80 | |
81 | 81 | require $path; |
82 | 82 | |
83 | - $GLOBALS['__composer_autoload_files'][ $identifier ] = true; |
|
83 | + $GLOBALS['__composer_autoload_files'][$identifier] = true; |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | } |
@@ -18,13 +18,16 @@ |
||
18 | 18 | <?php esc_html_e( 'No payment lines found.', 'pronamic_ideal' ); ?> |
19 | 19 | </p> |
20 | 20 | |
21 | -<?php else : ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | |
23 | 24 | <div class="pronamic-pay-table-responsive"> |
24 | 25 | <table class="pronamic-pay-table widefat"> |
25 | 26 | <thead> |
26 | 27 | <tr> |
27 | - <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); ?></th> |
|
28 | + <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); |
|
29 | +} |
|
30 | +?></th> |
|
28 | 31 | <th scope="col"><?php esc_html_e( 'SKU', 'pronamic_ideal' ); ?></th> |
29 | 32 | <th scope="col"><?php esc_html_e( 'Image', 'pronamic_ideal' ); ?></th> |
30 | 33 | <th scope="col"><?php esc_html_e( 'Name', 'pronamic_ideal' ); ?></th> |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | <?php |
112 | 112 | |
113 | 113 | $values = array_map( |
114 | - function ( PaymentLine $line ) { |
|
114 | + function( PaymentLine $line ) { |
|
115 | 115 | return $line->get_total_amount()->get_excluding_tax()->get_value(); |
116 | 116 | }, |
117 | 117 | $lines->get_array() |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | if ( $payment->get_total_amount()->has_tax() ) { |
131 | 131 | $values = array_map( |
132 | - function ( PaymentLine $line ) { |
|
132 | + function( PaymentLine $line ) { |
|
133 | 133 | return $line->get_total_amount()->get_including_tax()->get_value(); |
134 | 134 | }, |
135 | 135 | $lines->get_array() |
@@ -389,9 +389,11 @@ |
||
389 | 389 | |
390 | 390 | esc_html_e( 'Ecommerce conversion tracked', 'pronamic_ideal' ); |
391 | 391 | |
392 | - else : |
|
392 | + else { |
|
393 | + : |
|
393 | 394 | |
394 | 395 | esc_html_e( 'Ecommerce conversion not tracked', 'pronamic_ideal' ); |
396 | + } |
|
395 | 397 | |
396 | 398 | endif; |
397 | 399 |
@@ -646,8 +646,8 @@ discard block |
||
646 | 646 | <td> |
647 | 647 | <?php |
648 | 648 | |
649 | - if ( isset( $source['components'][ $key ] ) ) { |
|
650 | - $component = $source['components'][ $key ]; |
|
649 | + if ( isset( $source['components'][$key] ) ) { |
|
650 | + $component = $source['components'][$key]; |
|
651 | 651 | |
652 | 652 | $name = null; |
653 | 653 | $tip = null; |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | $warning = null; |
656 | 656 | |
657 | 657 | if ( is_array( $component ) ) { |
658 | - $name = $component['name']; |
|
658 | + $name = $component['name']; |
|
659 | 659 | |
660 | 660 | if ( array_key_exists( 'description', $component ) ) { |
661 | 661 | $description = $component['description']; |
@@ -504,8 +504,8 @@ |
||
504 | 504 | <td> |
505 | 505 | <?php |
506 | 506 | |
507 | - if ( isset( $source['components'][ $key ] ) ) { |
|
508 | - $component = $source['components'][ $key ]; |
|
507 | + if ( isset( $source['components'][$key] ) ) { |
|
508 | + $component = $source['components'][$key]; |
|
509 | 509 | |
510 | 510 | $name = null; |
511 | 511 | $tip = null; |
@@ -92,9 +92,9 @@ |
||
92 | 92 | |
93 | 93 | if ( isset( $argv[1] ) && in_array( $argv[1], array( 'git', 'grunt', 'composer', 'npm', 'ncu' ), true ) ) { |
94 | 94 | if ( isset( $argv[2] ) ) { |
95 | - $command = sprintf( '%s %s', $argv[ 1 ], $argv[ 2 ] ); |
|
95 | + $command = sprintf( '%s %s', $argv[1], $argv[2] ); |
|
96 | 96 | } else { |
97 | - $command = sprintf( '%s', $argv[ 1 ] ); |
|
97 | + $command = sprintf( '%s', $argv[1] ); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * |
8 | 8 | * @link https://make.wordpress.org/cli/2017/05/03/managing-command-dependencies/ |
9 | 9 | */ |
10 | -\WP_CLI::add_hook( 'after_add_command:i18n make-pot', function () { |
|
10 | +\WP_CLI::add_hook( 'after_add_command:i18n make-pot', function() { |
|
11 | 11 | class MakePotCommand extends \WP_CLI\I18n\MakePotCommand { |
12 | 12 | public function __construct() { |
13 | 13 | parent::__construct(); |