diff --git a/dev/tools/performance-toolkit/fixtures/indexers_apply.php b/dev/tools/performance-toolkit/fixtures/indexers_states_apply.php similarity index 64% rename from dev/tools/performance-toolkit/fixtures/indexers_apply.php rename to dev/tools/performance-toolkit/fixtures/indexers_states_apply.php index 40206c1a96a9140686bf5796012d76b94c2265ae..d65426e9bc56bc05b0eeff1a3a6334dffdae1914 100644 --- a/dev/tools/performance-toolkit/fixtures/indexers_apply.php +++ b/dev/tools/performance-toolkit/fixtures/indexers_states_apply.php @@ -5,9 +5,9 @@ */ /** - * Class IndexersApplyFixture + * Class IndexersStatesApplyFixture */ -class IndexersApplyFixture extends \Magento\ToolkitFramework\Fixture +class IndexersStatesApplyFixture extends \Magento\ToolkitFramework\Fixture { /** * @var int @@ -19,13 +19,11 @@ class IndexersApplyFixture extends \Magento\ToolkitFramework\Fixture */ public function execute() { - $indexers = \Magento\ToolkitFramework\Config::getInstance()->getValue('indexers', array()); + $indexers = \Magento\ToolkitFramework\Config::getInstance()->getValue('indexers', []); $this->application->resetObjectManager(); - - foreach ($indexers["indexer"] as $indexer) { - $this->application->indexersStates[$indexer['id']] = $indexer['set_scheduled']; - } - + foreach ($indexers["indexer"] as $indexer) { + $this->application->indexersStates[$indexer['id']] = $indexer['set_scheduled']; + } $this->application->getObjectManager()->get('Magento\Framework\App\CacheInterface') ->clean([\Magento\Framework\App\Config::CACHE_TAG]); } @@ -35,7 +33,7 @@ class IndexersApplyFixture extends \Magento\ToolkitFramework\Fixture */ public function getActionTitle() { - return 'Indexer Mode Changes'; + return 'Indexers Mode Changes'; } /** @@ -47,4 +45,4 @@ class IndexersApplyFixture extends \Magento\ToolkitFramework\Fixture } } -return new IndexersApplyFixture($this); +return new IndexersStatesApplyFixture($this);