Fix all autofixable CS issues

This commit is contained in:
Alain Schlesser 2023-08-30 15:25:01 +02:00
parent afcc5f4af2
commit a638015672
No known key found for this signature in database
GPG key ID: C2188A5B63449075
2 changed files with 2 additions and 4 deletions

View file

@ -4,7 +4,7 @@ if ( ! class_exists( 'WP_CLI' ) ) {
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;
}

View file

@ -1085,7 +1085,6 @@ class Scaffold_Command extends WP_CLI_Command {
if ( ! is_dir( $themes_dir ) ) {
wp_mkdir_p( $themes_dir );
}
}
/**
@ -1096,7 +1095,6 @@ class Scaffold_Command extends WP_CLI_Command {
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
wp_mkdir_p( WP_PLUGIN_DIR );
}
}
/**
@ -1113,7 +1111,7 @@ class Scaffold_Command extends WP_CLI_Command {
* 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 );
}
/**