Skip to content

Commit a8163c8

Browse files
authored
Merge pull request #99 from jrfnl/feature/cs-fixes-5
PHPCS: fix up the code base [5] - multi-line function calls
2 parents d93a71b + f4d139d commit a8163c8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Search_Replace_Command.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,13 @@ private static function esc_sql_value( $values ) {
721721
private function get_colors( $assoc_args, $colors ) {
722722
$color_reset = WP_CLI::colorize( '%n' );
723723

724-
$color_codes = implode( '', array_map( function ( $v ) {
724+
$color_code_callback = function ( $v ) {
725725
return substr( $v, 1 );
726-
}, array_keys( \cli\Colors::getColors() ) ) );
726+
};
727+
728+
$color_codes = array_keys( \cli\Colors::getColors() );
729+
$color_codes = array_map( $color_code_callback, $color_codes );
730+
$color_codes = implode( '', $color_codes );
727731

728732
$color_codes_regex = '/^(?:%[' . $color_codes . '])*$/';
729733

0 commit comments

Comments
 (0)