Commit 8762c4bc authored by Cédric Anne's avatar Cédric Anne

Fix check_licence_header result code

parent 1496518c
......@@ -39,7 +39,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class LicenceHeaderCommand extends Command {
class CheckLicenceHeaderCommand extends Command {
/**
* Result code returned when some headers are missing or are outdated.
......@@ -198,7 +198,7 @@ class LicenceHeaderCommand extends Command {
}
}
if ($missing_found === 0 || $outdated_found === 0) {
if ($missing_found === 0 && $outdated_found === 0) {
$output->writeln('<info>Files headers are valid.</info>', OutputInterface::VERBOSITY_QUIET);
return 0; // Success
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment