@@ -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() |
@@ -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(); |