We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b94c5a + f5ea549 commit 83dd761Copy full SHA for 83dd761
src/Command/SearchCommand.php
@@ -54,7 +54,7 @@ protected function configure()
54
protected function execute(InputInterface $input, OutputInterface $output)
55
{
56
$indexName = $input->getOption('index');
57
- $index = $this->indexManager->getIndex($indexName ? $indexName : null);
+ $index = $this->indexManager->getIndex($indexName ?: null);
58
$query = Query::create($input->getArgument('query'));
59
$query->setSize($input->getOption('limit'));
60
if ($input->getOption('explain')) {
0 commit comments