From b02d120c9211909f51128d4cb5003a942046eb63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 19:59:21 +0000 Subject: [PATCH 1/2] Update alleyinteractive/alley-coding-standards requirement || ^2.0 Updates the requirements on [alleyinteractive/alley-coding-standards](https://github.com/alleyinteractive/alley-coding-standards) to permit the latest version. - [Release notes](https://github.com/alleyinteractive/alley-coding-standards/releases) - [Commits](https://github.com/alleyinteractive/alley-coding-standards/compare/v1.0.0...v2.0.0) --- updated-dependencies: - dependency-name: alleyinteractive/alley-coding-standards dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 9e729a5e9a509ac85d1a2fb6424aa40a1bb583ce Mon Sep 17 00:00:00 2001 From: Emily Leffler Schulman <24902269+emilyatmobtown@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:50:50 -0500 Subject: [PATCH 2/2] Address phpcs errors with new standard. --- src/class-controller.php | 2 +- src/trait-theme-helpers.php | 1 - tests/bootstrap.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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() );