We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fd9d04 + da0c874 commit 4c5af31Copy full SHA for 4c5af31
src/Ruleset.php
@@ -249,7 +249,12 @@ public function explain()
249
// one last time and clear the output buffer.
250
$sniffs[] = '';
251
252
- echo PHP_EOL."The $this->name standard contains $sniffCount sniffs".PHP_EOL;
+ $summaryLine = PHP_EOL."The $this->name standard contains 1 sniff".PHP_EOL;
253
+ if ($sniffCount !== 1) {
254
+ $summaryLine = str_replace('1 sniff', "$sniffCount sniffs", $summaryLine);
255
+ }
256
+
257
+ echo $summaryLine;
258
259
ob_start();
260
0 commit comments