Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #256 from Automattic/fix/phpcs-i18n
Browse files Browse the repository at this point in the history
Add Jetpack i18n declaration
  • Loading branch information
kraftbj authored Apr 19, 2022
2 parents 417435b + 9c957b0 commit eb3b75a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"test": "vendor/bin/phpunit"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
2 changes: 1 addition & 1 deletion features/jetpack-beta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
5 changes: 5 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<property name="text_domain" type="array" value="jurassic-ninja" />
</properties>
</rule>
<rule ref="Jetpack.Functions.I18n">
<properties>
<property name="text_domain" value="jurassic-ninja" />
</properties>
</rule>
<rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning">
<severity>0</severity>
</rule>
Expand Down

0 comments on commit eb3b75a

Please sign in to comment.