diff --git a/src/Reports/Cbf.php b/src/Reports/Cbf.php index d3b70fab62..9f2ba84061 100644 --- a/src/Reports/Cbf.php +++ b/src/Reports/Cbf.php @@ -149,7 +149,12 @@ public function generate( array_pop($lines); if (empty($lines) === true) { - echo PHP_EOL.'No fixable errors were found'.PHP_EOL; + if (($totalErrors + $totalWarnings) === 0) { + echo PHP_EOL.'No violations were found'.PHP_EOL; + } else { + echo PHP_EOL.'No fixable errors were found'.PHP_EOL; + } + return; }