mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-08-20 05:55:40 +08:00
Fix all autofixable CS issues
This commit is contained in:
parent
afcc5f4af2
commit
a638015672
2 changed files with 2 additions and 4 deletions
|
@ -4,7 +4,7 @@ if ( ! class_exists( 'WP_CLI' ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$wpcli_scaffold_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
|
$wpcli_scaffold_autoloader = __DIR__ . '/vendor/autoload.php';
|
||||||
if ( file_exists( $wpcli_scaffold_autoloader ) ) {
|
if ( file_exists( $wpcli_scaffold_autoloader ) ) {
|
||||||
require_once $wpcli_scaffold_autoloader;
|
require_once $wpcli_scaffold_autoloader;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1085,7 +1085,6 @@ class Scaffold_Command extends WP_CLI_Command {
|
||||||
if ( ! is_dir( $themes_dir ) ) {
|
if ( ! is_dir( $themes_dir ) ) {
|
||||||
wp_mkdir_p( $themes_dir );
|
wp_mkdir_p( $themes_dir );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1096,7 +1095,6 @@ class Scaffold_Command extends WP_CLI_Command {
|
||||||
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
|
if ( ! is_dir( WP_PLUGIN_DIR ) ) {
|
||||||
wp_mkdir_p( WP_PLUGIN_DIR );
|
wp_mkdir_p( WP_PLUGIN_DIR );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1113,7 +1111,7 @@ class Scaffold_Command extends WP_CLI_Command {
|
||||||
* Localizes the template path.
|
* Localizes the template path.
|
||||||
*/
|
*/
|
||||||
private static function mustache_render( $template, $data = [] ) {
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue