Skip to content

Commit 757cd82

Browse files
swissspidyclaude
andauthored
Fix PHPCS errors in Behat test files (#505)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 01b0fd8 commit 757cd82

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎features/audit.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Feature: Audit strings in a WordPress project
107107
* Text Domain: foo-plugin
108108
*/
109109
110-
__( 'Hello %s %s', 'foo-plugin' );
110+
__( 'Hello %s %s', 'foo-plugin' ); // phpcs:ignore WordPress.WP.I18n.UnorderedPlaceholdersText -- Unordered on purpose, this is what the audit is expected to flag.
111111
"""
112112

113113
When I try `wp i18n audit foo-plugin`

‎features/makepot.feature‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ Feature: Generate a POT file of a WordPress project
893893
*/
894894
895895
sprintf(
896-
_n( 'One Comment', '%s Comments', $number, 'foo-plugin' ),
897-
$number
896+
_n( 'One Comment', '%s Comments', $number, 'foo-plugin' ),
897+
$number
898898
);
899899
900900
"""
@@ -920,9 +920,9 @@ Feature: Generate a POT file of a WordPress project
920920
*/
921921
922922
sprintf(
923-
_n( '%1$s Comment (%2$d)', '%2$s Comments (%1$s)', $number, 'foo-plugin' ),
924-
$number,
925-
$another_variable
923+
_n( '%1$s Comment (%2$d)', '%2$s Comments (%1$s)', $number, 'foo-plugin' ),
924+
$number,
925+
$another_variable
926926
);
927927
928928
"""
@@ -948,9 +948,9 @@ Feature: Generate a POT file of a WordPress project
948948
*/
949949
950950
sprintf(
951-
__( 'Hello %s %s', 'foo-plugin' ),
952-
$a_variable,
953-
$another_variable
951+
__( 'Hello %s %s', 'foo-plugin' ), // phpcs:ignore WordPress.WP.I18n.UnorderedPlaceholdersText -- Unordered on purpose, this is what make-pot is expected to warn about.
952+
$a_variable,
953+
$another_variable
954954
);
955955
956956
"""

0 commit comments

Comments
 (0)