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