Procházet zdrojové kódy

Make integrity commands verbose

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v23.0.0beta1
Joas Schilling před 2 roky
rodič
revize
5390d3194f
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 2
- 0
core/Command/Integrity/CheckApp.php Zobrazit soubor

@@ -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;
}
}

+ 2
- 0
core/Command/Integrity/CheckCore.php Zobrazit soubor

@@ -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;
}
}

Načítá se…
Zrušit
Uložit