From c0efd55620f2a3bb00ab03af23dfa577f3a3401d Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Tue, 19 Apr 2022 13:20:59 -0500 Subject: [PATCH 1/2] Add Jetpack i18n declaration --- phpcs.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpcs.xml b/phpcs.xml index c885361..918ac40 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -10,6 +10,11 @@ + + + + + 0 From 9c957b0e6650ceec88cbead9420d02c778d430a1 Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Tue, 19 Apr 2022 13:25:14 -0500 Subject: [PATCH 2/2] Fix PHPCS --- composer.json | 5 ++++- features/jetpack-beta.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index cf9cd75..26a979b 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,9 @@ "test": "vendor/bin/phpunit" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/features/jetpack-beta.php b/features/jetpack-beta.php index cdd47e3..23d7466 100644 --- a/features/jetpack-beta.php +++ b/features/jetpack-beta.php @@ -75,7 +75,7 @@ function ( &$app = null, $features, $domain ) use ( $defaults ) { if ( $features['branches'] ) { foreach ( $features['branches'] as $plugin_name => $branch_name ) { - if ( $plugin_name === 'jetpack' && isset( $features['jetpack'] ) && $features['jetpack'] === false ) { + if ( $plugin_name === 'jetpack' && isset( $features['jetpack'] ) && $features['jetpack'] === false ) { continue; } if ( $branch_name ) {