@@ -26,8 +26,7 @@ |
||
| 26 | 26 | * @subpackage dlf |
| 27 | 27 | * @access public |
| 28 | 28 | */ |
| 29 | -class BaseCommand extends Command |
|
| 30 | -{ |
|
| 29 | +class BaseCommand extends Command { |
|
| 31 | 30 | /** |
| 32 | 31 | * Return starting point for indexing command. |
| 33 | 32 | * |
@@ -32,15 +32,13 @@ discard block |
||
| 32 | 32 | * @subpackage dlf |
| 33 | 33 | * @access public |
| 34 | 34 | */ |
| 35 | -class ReindexCommand extends BaseCommand |
|
| 36 | -{ |
|
| 35 | +class ReindexCommand extends BaseCommand { |
|
| 37 | 36 | /** |
| 38 | 37 | * Configure the command by defining the name, options and arguments |
| 39 | 38 | * |
| 40 | 39 | * @return void |
| 41 | 40 | */ |
| 42 | - public function configure() |
|
| 43 | - { |
|
| 41 | + public function configure() { |
|
| 44 | 42 | $this |
| 45 | 43 | ->setDescription('Reindex a collection into database and Solr.') |
| 46 | 44 | ->setHelp('') |
@@ -84,8 +82,7 @@ discard block |
||
| 84 | 82 | * |
| 85 | 83 | * @return void |
| 86 | 84 | */ |
| 87 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 88 | - { |
|
| 85 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 89 | 86 | // Make sure the _cli_ user is loaded |
| 90 | 87 | Bootstrap::getInstance()->initializeBackendAuthentication(); |
| 91 | 88 | |
@@ -31,15 +31,13 @@ discard block |
||
| 31 | 31 | * @subpackage dlf |
| 32 | 32 | * @access public |
| 33 | 33 | */ |
| 34 | -class IndexCommand extends BaseCommand |
|
| 35 | -{ |
|
| 34 | +class IndexCommand extends BaseCommand { |
|
| 36 | 35 | /** |
| 37 | 36 | * Configure the command by defining the name, options and arguments |
| 38 | 37 | * |
| 39 | 38 | * @return void |
| 40 | 39 | */ |
| 41 | - public function configure() |
|
| 42 | - { |
|
| 40 | + public function configure() { |
|
| 43 | 41 | $this |
| 44 | 42 | ->setDescription('Index single document into database and Solr.') |
| 45 | 43 | ->setHelp('') |
@@ -77,8 +75,7 @@ discard block |
||
| 77 | 75 | * |
| 78 | 76 | * @return void |
| 79 | 77 | */ |
| 80 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 81 | - { |
|
| 78 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 82 | 79 | // Make sure the _cli_ user is loaded |
| 83 | 80 | Bootstrap::getInstance()->initializeBackendAuthentication(); |
| 84 | 81 | |