Add fast option to check data

This commit is contained in:
Hillel Coren 2017-11-07 10:40:46 +02:00
parent 0545f73628
commit 90d5494e39

View File

@ -42,6 +42,10 @@ Options:
By default the script only checks for errors, adding this option
makes the script apply the fixes.
--fast=true
Skip using phantomjs
*/
/**
@ -144,7 +148,7 @@ class CheckData extends Command
return;
}
if ($this->option('fix') == 'true') {
if ($this->option('fix') == 'true' || $this->option('fast') == 'true') {
return;
}
@ -792,6 +796,7 @@ class CheckData extends Command
{
return [
['fix', null, InputOption::VALUE_OPTIONAL, 'Fix data', null],
['fast', null, InputOption::VALUE_OPTIONAL, 'Fast', null],
['client_id', null, InputOption::VALUE_OPTIONAL, 'Client id', null],
['database', null, InputOption::VALUE_OPTIONAL, 'Database', null],
];