PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

Ruleset::explain(): fix plural vs singular phrasing

Open jrfnl opened this issue 3 years ago • 1 comments

When running the phpcs --standard=Name -e command, the line at the top of the output would always presumes that a standard contains more than one sniff. The sniff count for the standards within the standard - StandardName (# sniff[s]) - already handled this correctly.

Fixed the top line now.

Output without this fix:

The DummySubDir standard contains 1 sniffs

DummySubDir (1 sniff)
----------------------
  DummySubDir.Demo.Demo

Output with this fix:

The DummySubDir standard contains 1 sniff

DummySubDir (1 sniff)
----------------------
  DummySubDir.Demo.Demo

jrfnl avatar Feb 01 '22 03:02 jrfnl

@gsherwood If you're looking for another simple PR and easy merge.... 😇

jrfnl avatar May 31 '22 23:05 jrfnl