Skip to content

Commit 1e9b181

Browse files
authored
Update to WPCS v3 (#178)
* Update to wp-cli-tests v4 (which requires WPCS v3) * Fix all autofixable CS issues
1 parent de6d7ad commit 1e9b181

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require-dev": {
2020
"wp-cli/scaffold-command": "^1 || ^2",
21-
"wp-cli/wp-cli-tests": "^3.1"
21+
"wp-cli/wp-cli-tests": "^4"
2222
},
2323
"config": {
2424
"process-timeout": 7200,

package-command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
return;
55
}
66

7-
$wpcli_package_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
7+
$wpcli_package_autoloader = __DIR__ . '/vendor/autoload.php';
88
if ( file_exists( $wpcli_package_autoloader ) && ! class_exists( 'Package_Command' ) ) {
99
require_once $wpcli_package_autoloader;
1010
}

src/Package_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ private function show_packages( $context, $packages, $assoc_args ) {
790790
}
791791

792792
$list = array_map(
793-
function( $package ) {
793+
function ( $package ) {
794794
$package['version'] = implode( ', ', $package['version'] );
795795
return $package;
796796
},

0 commit comments

Comments
 (0)