Skip to content

Commit

Permalink
Suppress phpcs false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Apr 11, 2021
1 parent e607d26 commit f78bcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/test-class-amp-nav-menu-toggle-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function data_converter() {
}
return ' data-amp-bind-class=""' . $class . '" + ( navMenuToggledOn ? " ' . $toggle_class . '" : \'\' )"';
};
$amp_get_toggle_attrs = function( $class = '', $toggle_class = 'toggled-on' ) {
$amp_get_toggle_attrs = function( $class = '', $toggle_class = 'toggled-on' ) { // phpcs:ignore Generic.Formatting.MultipleStatementAlignment.NotSameWarning -- Sniff has a bug.
return ' on="tap:AMP.setState({ navMenuToggledOn: ! navMenuToggledOn })" aria-expanded="false" data-amp-bind-aria-expanded="navMenuToggledOn ? \'true\' : \'false\'"' . ( ! empty( $toggle_class ) ? ' data-amp-bind-class=""' . $class . '" + ( navMenuToggledOn ? " ' . $toggle_class . '" : \'\' )"' : '' );
};

Expand Down

0 comments on commit f78bcab

Please sign in to comment.