Skip to content

Commit 4125a31

Browse files
authored
Merge pull request #324 from wp-cli/fix/wpcs-3.0-issues
2 parents 594f0b4 + a638015 commit 4125a31

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

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/extension-command": "^1.2 || ^2",
19-
"wp-cli/wp-cli-tests": "^3.1"
19+
"wp-cli/wp-cli-tests": "^4"
2020
},
2121
"config": {
2222
"process-timeout": 7200,

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

src/Scaffold_Command.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,6 @@ protected function maybe_create_themes_dir() {
10851085
if ( ! is_dir( $themes_dir ) ) {
10861086
wp_mkdir_p( $themes_dir );
10871087
}
1088-
10891088
}
10901089

10911090
/**
@@ -1096,7 +1095,6 @@ protected function maybe_create_plugins_dir() {
10961095
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
10971096
wp_mkdir_p( WP_PLUGIN_DIR );
10981097
}
1099-
11001098
}
11011099

11021100
/**
@@ -1113,7 +1111,7 @@ protected function init_wp_filesystem() {
11131111
* Localizes the template path.
11141112
*/
11151113
private static function mustache_render( $template, $data = [] ) {
1116-
return Utils\mustache_render( dirname( dirname( __FILE__ ) ) . "/templates/{$template}", $data );
1114+
return Utils\mustache_render( dirname( __DIR__ ) . "/templates/{$template}", $data );
11171115
}
11181116

11191117
/**

0 commit comments

Comments
 (0)