diff --git a/composer.json b/composer.json index d5b34cc..90f4c75 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": "^8.0" }, "require-dev": { - "alleyinteractive/alley-coding-standards": "^1.0", + "alleyinteractive/alley-coding-standards": "^1.0 || ^2.0", "mantle-framework/testkit": "^0.10.1 || ^0.12.0", "nunomaduro/collision": "^5.0 || ^6.0", "symfony/filesystem": "^6.0" diff --git a/src/class-controller.php b/src/class-controller.php index 7a7d1e5..a1bd8b5 100644 --- a/src/class-controller.php +++ b/src/class-controller.php @@ -43,7 +43,7 @@ public function __construct( throw new Exception( // @todo Add more robust error messaging. sprintf( - __( 'WP Theme Migrator failed. Context is not valid.', 'wp-theme-migrator' ), + esc_html__( 'WP Theme Migrator failed. Context is not valid.', 'wp-theme-migrator' ), ) ); } diff --git a/src/trait-theme-helpers.php b/src/trait-theme-helpers.php index 63b9705..f77971f 100644 --- a/src/trait-theme-helpers.php +++ b/src/trait-theme-helpers.php @@ -57,5 +57,4 @@ protected function get_theme( string $theme, string $prop = '' ) { return wp_get_theme( $theme ); } } - } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7b744e1..a504722 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,7 +13,7 @@ // Run unit tests. manager() ->loaded( - function() { + function () { // Load test themes. $file_system = new Filesystem(); $file_system->mirror( __DIR__ . '/themes', get_theme_root() );