Make integrity commands verbose

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/27880/head
Joas Schilling 4 years ago
parent dad31ce3fa
commit 5390d3194f
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      core/Command/Integrity/CheckApp.php
  2. 2
      core/Command/Integrity/CheckCore.php

@ -72,8 +72,10 @@ class CheckApp extends Base {
$result = $this->checker->verifyAppSignature($appid, $path, true);
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {
$output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
return 1;
}
$output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
return 0;
}
}

@ -68,8 +68,10 @@ class CheckCore extends Base {
$result = $this->checker->verifyCoreSignature();
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result) > 0) {
$output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
return 1;
}
$output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
return 0;
}
}

Loading…
Cancel
Save