5
5
*/
6
6
7
7
/**
8
- * Class IndexersApplyFixture
8
+ * Class IndexersStatesApplyFixture
9
9
*/
10
- class IndexersApplyFixture extends \Magento \ToolkitFramework \Fixture
10
+ class IndexersStatesApplyFixture extends \Magento \ToolkitFramework \Fixture
11
11
{
12
12
/**
13
13
* @var int
@@ -19,13 +19,11 @@ class IndexersApplyFixture extends \Magento\ToolkitFramework\Fixture
19
19
*/
20
20
public function execute ()
21
21
{
22
- $ indexers = \Magento \ToolkitFramework \Config::getInstance ()->getValue ('indexers ' , array () );
22
+ $ indexers = \Magento \ToolkitFramework \Config::getInstance ()->getValue ('indexers ' , [] );
23
23
$ this ->application ->resetObjectManager ();
24
-
25
- foreach ($ indexers ["indexer " ] as $ indexer ) {
26
- $ this ->application ->indexersStates [$ indexer ['id ' ]] = $ indexer ['set_scheduled ' ];
27
- }
28
-
24
+ foreach ($ indexers ["indexer " ] as $ indexer ) {
25
+ $ this ->application ->indexersStates [$ indexer ['id ' ]] = $ indexer ['set_scheduled ' ];
26
+ }
29
27
$ this ->application ->getObjectManager ()->get ('Magento\Framework\App\CacheInterface ' )
30
28
->clean ([\Magento \Framework \App \Config::CACHE_TAG ]);
31
29
}
@@ -35,7 +33,7 @@ public function execute()
35
33
*/
36
34
public function getActionTitle ()
37
35
{
38
- return 'Indexer Mode Changes ' ;
36
+ return 'Indexers Mode Changes ' ;
39
37
}
40
38
41
39
/**
@@ -47,4 +45,4 @@ public function introduceParamLabels()
47
45
}
48
46
}
49
47
50
- return new IndexersApplyFixture ($ this );
48
+ return new IndexersStatesApplyFixture ($ this );
0 commit comments