@@ -62,10 +62,10 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | protected function execute(InputInterface $input, OutputInterface $output) { |
| 64 | 64 | $collections = $this->collectionService->getCollections(); |
| 65 | - $output->writeln('found ' . sizeof($collections) . ' collection(s)'); |
|
| 65 | + $output->writeln('found '.sizeof($collections).' collection(s)'); |
|
| 66 | 66 | |
| 67 | 67 | foreach ($this->collectionService->getCollections() as $collection) { |
| 68 | - $output->writeln('- ' . (($collection === $this->configService->getInternalCollection()) ? '*' : '') . $collection); |
|
| 68 | + $output->writeln('- '.(($collection === $this->configService->getInternalCollection()) ? '*' : '').$collection); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | return 0; |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | $helper = $this->getHelper('question'); |
| 85 | 85 | |
| 86 | 86 | $output->writeln('<error>WARNING! You are about to reset your indexed documents:</error>'); |
| 87 | - $output->writeln('- provider: <info>' . (($provider === '') ? 'ALL' : $provider) . '</info>'); |
|
| 88 | - $output->writeln('- collection: <info>' . (($collection === '') ? 'ALL' : $collection) . '</info>'); |
|
| 87 | + $output->writeln('- provider: <info>'.(($provider === '') ? 'ALL' : $provider).'</info>'); |
|
| 88 | + $output->writeln('- collection: <info>'.(($collection === '') ? 'ALL' : $collection).'</info>'); |
|
| 89 | 89 | $output->writeln(''); |
| 90 | 90 | |
| 91 | 91 | $question = new ConfirmationQuestion( |
@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $output->writeln(''); |
| 104 | 104 | $output->writeln('<error>WARNING! This operation is not reversible.</error>'); |
| 105 | - $action = 'reset ' . (($provider === '') ? 'ALL' : $provider) |
|
| 106 | - . ' ' . (($collection === '') ? 'ALL' : $collection); |
|
| 105 | + $action = 'reset '.(($provider === '') ? 'ALL' : $provider) |
|
| 106 | + . ' '.(($collection === '') ? 'ALL' : $collection); |
|
| 107 | 107 | |
| 108 | - $question = new Question('<comment>Please confirm this destructive operation by typing \'' . $action . '\'</comment>: ', ''); |
|
| 108 | + $question = new Question('<comment>Please confirm this destructive operation by typing \''.$action.'\'</comment>: ', ''); |
|
| 109 | 109 | |
| 110 | 110 | $helper = $this->getHelper('question'); |
| 111 | 111 | $confirmation = $helper->ask($input, $output, $question); |