5
5
*/
6
6
namespace Magento \Indexer \Console \Command ;
7
7
8
- use Symfony \Component \Console \Input \InputInterface ;
9
- use Symfony \Component \Console \Output \OutputInterface ;
10
8
use Magento \Framework \Indexer ;
11
9
use Magento \Framework \Mview ;
12
10
use Symfony \Component \Console \Helper \Table ;
11
+ use Symfony \Component \Console \Input \InputInterface ;
12
+ use Symfony \Component \Console \Output \OutputInterface ;
13
13
14
14
/**
15
15
* Command for displaying status of indexers.
16
16
*/
17
17
class IndexerStatusCommand extends AbstractIndexerManageCommand
18
18
{
19
19
/**
20
- * { @inheritdoc}
20
+ * @inheritdoc
21
21
*/
22
22
protected function configure ()
23
23
{
@@ -29,7 +29,9 @@ protected function configure()
29
29
}
30
30
31
31
/**
32
- * {@inheritdoc}
32
+ * @inheritdoc
33
+ * @param InputInterface $input
34
+ * @param OutputInterface $output
33
35
*/
34
36
protected function execute (InputInterface $ input , OutputInterface $ output )
35
37
{
@@ -60,15 +62,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
60
62
$ rows [] = $ rowData ;
61
63
}
62
64
63
- usort ($ rows , function ($ comp1 , $ comp2 ) {
64
- return strcmp ($ comp1 ['Title ' ], $ comp2 ['Title ' ]);
65
- });
65
+ usort (
66
+ $ rows ,
67
+ function ($ comp1 , $ comp2 ) {
68
+ return strcmp ($ comp1 ['Title ' ], $ comp2 ['Title ' ]);
69
+ }
70
+ );
66
71
67
72
$ table ->addRows ($ rows );
68
73
$ table ->render ();
69
74
}
70
75
71
76
/**
77
+ * Returns the current status of the indexer
78
+ *
72
79
* @param Indexer\IndexerInterface $indexer
73
80
* @return string
74
81
*/
@@ -90,6 +97,8 @@ private function getStatus(Indexer\IndexerInterface $indexer)
90
97
}
91
98
92
99
/**
100
+ * Returns the pending count of the view
101
+ *
93
102
* @param Mview\ViewInterface $view
94
103
* @return string
95
104
*/
0 commit comments