@@ -23,10 +23,8 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @access public |
| 25 | 25 | */ |
| 26 | -class SuggestBuildTask extends BaseTask |
|
| 27 | -{ |
|
| 28 | - public function execute() |
|
| 29 | - { |
|
| 26 | +class SuggestBuildTask extends BaseTask { |
|
| 27 | + public function execute() { |
|
| 30 | 28 | $inputArray = []; |
| 31 | 29 | $inputArray['-s'] = $this->solr; |
| 32 | 30 | |
@@ -74,12 +74,12 @@ |
||
| 74 | 74 | $solr = Solr::getInstance($input->getOption('solr')); |
| 75 | 75 | // Connect to Solr server. |
| 76 | 76 | if (!$solr->ready) { |
| 77 | - $io->error('ERROR: Connection to Solr core ("' . $input->getOption('solr') . '") not possible \n'); |
|
| 77 | + $io->error('ERROR: Connection to Solr core ("'.$input->getOption('solr').'") not possible \n'); |
|
| 78 | 78 | return BaseCommand::FAILURE; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if (!$solr->suggestBuild()) { |
| 82 | - $io->error('ERROR: Sending the command suggest.build=true to Solr core ("' . $input->getOption('solr') . '") not possible \n'); |
|
| 82 | + $io->error('ERROR: Sending the command suggest.build=true to Solr core ("'.$input->getOption('solr').'") not possible \n'); |
|
| 83 | 83 | return BaseCommand::FAILURE; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -27,8 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @access public |
| 29 | 29 | */ |
| 30 | -class SuggestBuildCommand extends Command |
|
| 31 | -{ |
|
| 30 | +class SuggestBuildCommand extends Command { |
|
| 32 | 31 | |
| 33 | 32 | /** |
| 34 | 33 | * Configure the command by defining the name, options and arguments |