diff --git a/src/Commands/ValidateCsv.php b/src/Commands/ValidateCsv.php
index fcce4124..89b298da 100644
--- a/src/Commands/ValidateCsv.php
+++ b/src/Commands/ValidateCsv.php
@@ -17,7 +17,6 @@
namespace JBZoo\CsvBlueprint\Commands;
use JBZoo\Cli\CliCommand;
-use JBZoo\Cli\OutLvl;
use JBZoo\CsvBlueprint\Csv\CsvFile;
use JBZoo\CsvBlueprint\Exception;
use JBZoo\CsvBlueprint\Schema;
@@ -168,7 +167,7 @@ private function validateSchema(string $schemaFilename): ?ErrorSuite
$schemaErrors = (new Schema($schemaFilename))->validate();
if ($schemaErrors->count() > 0) {
$this->_("Schema is invalid: {$schemaFilename}");
- $this->_($schemaErrors->render($this->getReportType()), OutLvl::E);
+ $this->_($schemaErrors->render($this->getReportType()));
}
}
@@ -199,15 +198,12 @@ private function validateCsvFiles(array $csvFilenames, string $schemaFilename):
$errorCounter += $errorSuite->count();
if ($this->isHumanReadableMode()) {
- $this->_(
- "{$prefix} Invalid file: " . Utils::cutPath($csvFilename->getPathname()),
- OutLvl::E,
- );
+ $this->_("{$prefix} Invalid file: " . Utils::cutPath($csvFilename->getPathname()));
}
$output = $errorSuite->render($this->getOptString('report'));
if ($output !== null) {
- $this->_($output, $this->isHumanReadableMode() ? OutLvl::E : OutLvl::DEFAULT);
+ $this->_($output);
}
} elseif ($this->isHumanReadableMode()) {
$this->_("{$prefix} OK: " . Utils::cutPath($csvFilename->getPathname()));
@@ -241,7 +237,7 @@ private function printFooter(
$errMessage = "Found {$errorCounter} issues in {$invalidFiles} out of {$totalFiles} CSV files.";
}
- $this->_($errMessage, OutLvl::E);
+ $this->_($errMessage);
$exitCode = self::FAILURE;
}