Use non-zero exit code

This commit is contained in:
Joas Schilling 2015-07-07 11:51:06 +02:00
parent eb1c437941
commit 9e469046fa

View file

@ -87,9 +87,10 @@ class CheckCode extends Command {
$output->writeln('<info>App is compliant - awesome job!</info>'); $output->writeln('<info>App is compliant - awesome job!</info>');
} elseif ($input->getOption('deprecated')) { } elseif ($input->getOption('deprecated')) {
$output->writeln('<comment>App uses deprecated functionality</comment>'); $output->writeln('<comment>App uses deprecated functionality</comment>');
return 102;
} else { } else {
$output->writeln('<error>App is not compliant</error>'); $output->writeln('<error>App is not compliant</error>');
return 1; return 101;
} }
} }
} }