File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
Model/ResourceModel/Indexer
lib/internal/Magento/Framework/Indexer Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class IndexerSetStatusCommand extends AbstractIndexerManageCommand
26
26
/**#@+
27
27
* Names of input arguments or options
28
28
*/
29
- const INPUT_KEY_STATUS = 'status ' ;
29
+ private const INPUT_KEY_STATUS = 'status ' ;
30
30
/**#@- */
31
31
32
32
/**
@@ -47,7 +47,7 @@ public function __construct(
47
47
}
48
48
49
49
/**
50
- * { @inheritdoc}
50
+ * @inheritdoc
51
51
*/
52
52
protected function configure ()
53
53
{
@@ -59,7 +59,7 @@ protected function configure()
59
59
}
60
60
61
61
/**
62
- * { @inheritdoc}
62
+ * @inheritdoc
63
63
*/
64
64
protected function execute (InputInterface $ input , OutputInterface $ output )
65
65
{
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ protected function prepareDataForUpdate($object)
31
31
$ data = parent ::prepareDataForUpdate ($ object );
32
32
33
33
if (isset ($ data ['status ' ]) && StateInterface::STATUS_VALID === $ data ['status ' ]) {
34
- $ condition = $ this ->getConnection ()->quoteInto ('status IN (?) ' ,
34
+ $ condition = $ this ->getConnection ()->quoteInto (
35
+ 'status IN (?) ' ,
35
36
[
36
37
StateInterface::STATUS_WORKING ,
37
38
StateInterface::STATUS_SUSPENDED
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ public function __construct(
51
51
/**
52
52
* Prevent updating a view if the associated indexer is suspended
53
53
*
54
- * @param ViewInterface $subject
55
- * @param callable $proceed
56
- * @return void
54
+ * @param ViewInterface $subject
55
+ * @param callable $proceed
56
+ * @return void
57
57
*/
58
58
public function aroundUpdate (ViewInterface $ subject , callable $ proceed ): void
59
59
{
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ interface StateInterface
14
14
/**
15
15
* Indexer statuses
16
16
*/
17
- const STATUS_WORKING = 'working ' ;
18
- const STATUS_VALID = 'valid ' ;
19
- const STATUS_INVALID = 'invalid ' ;
20
- const STATUS_SUSPENDED = 'suspended ' ;
17
+ public const STATUS_WORKING = 'working ' ;
18
+ public const STATUS_VALID = 'valid ' ;
19
+ public const STATUS_INVALID = 'invalid ' ;
20
+ public const STATUS_SUSPENDED = 'suspended ' ;
21
21
22
22
/**
23
23
* Return indexer id
You can’t perform that action at this time.
0 commit comments