Skip to content

Commit fb81983

Browse files
committed
MCP-966: Parallel Indexation for Catalog Permission[Stabilize PR]
1 parent cf7917e commit fb81983

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/code/Magento/Indexer/Console/Command/IndexerShowDimensionsModeCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
*/
2020
class IndexerShowDimensionsModeCommand extends AbstractIndexerCommand
2121
{
22-
const INPUT_KEY_INDEXER = 'indexer';
23-
const DIMENSION_MODE_NONE = 'none';
24-
const XML_PATH_DIMENSIONS_MODE_MASK = 'indexer/%s/dimensions_mode';
22+
private const INPUT_KEY_INDEXER = 'indexer';
23+
private const DIMENSION_MODE_NONE = 'none';
24+
private const XML_PATH_DIMENSIONS_MODE_MASK = 'indexer/%s/dimensions_mode';
2525
/**
2626
* @var string
2727
*/
@@ -60,7 +60,7 @@ public function __construct(
6060
}
6161

6262
/**
63-
* {@inheritdoc}
63+
* @inheritdoc
6464
*/
6565
protected function configure()
6666
{
@@ -71,7 +71,7 @@ protected function configure()
7171
}
7272

7373
/**
74-
* {@inheritdoc}
74+
* @inheritdoc
7575
* @param InputInterface $input
7676
* @param OutputInterface $output
7777
* @return int
@@ -99,6 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9999
$output->writeln(sprintf('%-50s ', $indexer->getTitle() . ':') . $mode);
100100
}
101101
} catch (\Exception $e) {
102+
/** @noinspection PhpUndefinedFieldInspection */
102103
if (!in_array($indexerId, $this->optionalIndexers)) {
103104
$output->writeln('"' . $indexer->getTitle() . '" indexer process unknown error:' . PHP_EOL);
104105
$output->writeln($e->getMessage() . PHP_EOL);

0 commit comments

Comments
 (0)