An exit expression should only be used in rare cases. For example, if you
write a short command line script.
In most cases however, using an exit expression makes the code untestable
and often causes incompatibilities with other libraries. Thus, unless you are
absolutely sure it is required here, we recommend to refactor your code to
avoid its usage.
Loading history...
21
}
22
23
24
protected function configure()
25
{
26
$this
27
->setName('delboy1978uk:migrate')
28
->setDescription('Execute migrations in a vendor package')
29
->addArgument('migrations-directory', InputArgument::REQUIRED, 'The directory containing the migrations.')
30
->addArgument('entity-directory', InputArgument::REQUIRED, 'The directory containing the migrations.')
31
->setHelp(<<<EOT
32
The <info>%command.name%</info> command executes migrate in a specified directory
This check marks private properties in classes that are never used. Those properties can be removed.