Skip to content

Commit 293f9de

Browse files
Update to WPCS v3 (#63)
* Update to wp-cli-tests v4 (which requires WPCS v3) * Fix all autofixable CS issues * Ignore error --------- Co-authored-by: Pascal Birchler <pascalb@google.com>
1 parent 55c3963 commit 293f9de

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"wp-cli/entity-command": "^1.3 || ^2",
19-
"wp-cli/wp-cli-tests": "^3.1"
19+
"wp-cli/wp-cli-tests": "^4"
2020
},
2121
"config": {
2222
"process-timeout": 7200,

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

src/Rewrite_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ private static function apache_modules() {
335335
// needed for get_home_path() and .htaccess location
336336
$_SERVER['SCRIPT_FILENAME'] = ABSPATH;
337337

338-
function apache_get_modules() {
338+
function apache_get_modules() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals
339339
return WP_CLI::get_config( 'apache_modules' );
340340
}
341341
}

0 commit comments

Comments
 (0)