Skip to content

Commit f470d04

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

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"wp-cli/wp-cli": "^2.5"
1616
},
1717
"require-dev": {
18-
"wp-cli/wp-cli-tests": "^3.1"
18+
"wp-cli/wp-cli-tests": "^4"
1919
},
2020
"config": {
2121
"process-timeout": 7200,

shell-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_shell_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
7+
$wpcli_shell_autoloader = __DIR__ . '/vendor/autoload.php';
88
if ( file_exists( $wpcli_shell_autoloader ) ) {
99
require_once $wpcli_shell_autoloader;
1010
}

src/WP_CLI/Shell/REPL.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,3 @@ private static function starts_with( $tokens, $line ) {
149149
return preg_match( "/^($tokens)[\(\s]+/", $line );
150150
}
151151
}
152-

0 commit comments

Comments
 (0)