Skip to content

Commit a638015

Browse files
committed
Fix all autofixable CS issues
1 parent afcc5f4 commit a638015

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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)