@@ -7,8 +7,8 @@ discard block |
||
7 | 7 | use WikibaseQuality\ExternalValidation\UpdateExternalData\CsvImportSettings; |
8 | 8 | use WikibaseQuality\ExternalValidation\UpdateExternalData\ExternalDataImporter; |
9 | 9 | |
10 | -$basePath = getenv( 'MW_INSTALL_PATH' ) !== false |
|
11 | - ? getenv( 'MW_INSTALL_PATH' ) |
|
10 | +$basePath = getenv('MW_INSTALL_PATH') !== false |
|
11 | + ? getenv('MW_INSTALL_PATH') |
|
12 | 12 | : __DIR__ . '/../../..'; |
13 | 13 | require_once $basePath . '/maintenance/Maintenance.php'; |
14 | 14 | |
@@ -25,16 +25,16 @@ discard block |
||
25 | 25 | public function __construct() { |
26 | 26 | parent::__construct(); |
27 | 27 | |
28 | - $this->addDescription( "Imports external entities from given CSV files into the local database. CSV files can be generated using the DumpConverter." ); |
|
29 | - $this->addOption( 'external-values-file', 'CSV file containing external values for import.', true, true ); |
|
30 | - $this->addOption( 'dump-information-file', 'CSV file containing dump meta information for import.', true, true ); |
|
31 | - $this->setBatchSize( 1000 ); |
|
28 | + $this->addDescription("Imports external entities from given CSV files into the local database. CSV files can be generated using the DumpConverter."); |
|
29 | + $this->addOption('external-values-file', 'CSV file containing external values for import.', true, true); |
|
30 | + $this->addOption('dump-information-file', 'CSV file containing dump meta information for import.', true, true); |
|
31 | + $this->setBatchSize(1000); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function execute() { |
35 | 35 | $context = new CsvImportSettings( |
36 | - $this->getOption( 'external-values-file' ), |
|
37 | - $this->getOption( 'dump-information-file' ), |
|
36 | + $this->getOption('external-values-file'), |
|
37 | + $this->getOption('dump-information-file'), |
|
38 | 38 | $this->mBatchSize, |
39 | 39 | $this->isQuiet() |
40 | 40 | ); |