Skip to content

Commit

Permalink
Fix all autofixable CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Aug 30, 2023
1 parent afcc5f4 commit a638015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scaffold-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
return;
}

$wpcli_scaffold_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
$wpcli_scaffold_autoloader = __DIR__ . '/vendor/autoload.php';
if ( file_exists( $wpcli_scaffold_autoloader ) ) {
require_once $wpcli_scaffold_autoloader;
}
Expand Down
4 changes: 1 addition & 3 deletions src/Scaffold_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,6 @@ protected function maybe_create_themes_dir() {
if ( ! is_dir( $themes_dir ) ) {
wp_mkdir_p( $themes_dir );
}

}

/**
Expand All @@ -1096,7 +1095,6 @@ protected function maybe_create_plugins_dir() {
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
wp_mkdir_p( WP_PLUGIN_DIR );
}

}

/**
Expand All @@ -1113,7 +1111,7 @@ protected function init_wp_filesystem() {
* Localizes the template path.
*/
private static function mustache_render( $template, $data = [] ) {
return Utils\mustache_render( dirname( dirname( __FILE__ ) ) . "/templates/{$template}", $data );
return Utils\mustache_render( dirname( __DIR__ ) . "/templates/{$template}", $data );
}

/**
Expand Down

0 comments on commit a638015

Please sign in to comment.