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.
1 parent 7f3d131 commit f5ea549Copy full SHA for f5ea549
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