Skip to content

Commit e2596bb

Browse files
authored
fix code styling errors
1 parent 51526cf commit e2596bb

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
*/
66
namespace Magento\Indexer\Console\Command;
77

8-
use Symfony\Component\Console\Input\InputInterface;
9-
use Symfony\Component\Console\Output\OutputInterface;
108
use Magento\Framework\Indexer;
119
use Magento\Framework\Mview;
1210
use Symfony\Component\Console\Helper\Table;
11+
use Symfony\Component\Console\Input\InputInterface;
12+
use Symfony\Component\Console\Output\OutputInterface;
1313

1414
/**
1515
* Command for displaying status of indexers.
1616
*/
1717
class IndexerStatusCommand extends AbstractIndexerManageCommand
1818
{
1919
/**
20-
* {@inheritdoc}
20+
* @inheritdoc
2121
*/
2222
protected function configure()
2323
{
@@ -29,7 +29,9 @@ protected function configure()
2929
}
3030

3131
/**
32-
* {@inheritdoc}
32+
* @inheritdoc
33+
* @param InputInterface $input
34+
* @param OutputInterface $output
3335
*/
3436
protected function execute(InputInterface $input, OutputInterface $output)
3537
{
@@ -60,15 +62,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
6062
$rows[] = $rowData;
6163
}
6264

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+
);
6671

6772
$table->addRows($rows);
6873
$table->render();
6974
}
7075

7176
/**
77+
* Returns the current status of the indexer
78+
*
7279
* @param Indexer\IndexerInterface $indexer
7380
* @return string
7481
*/
@@ -90,6 +97,8 @@ private function getStatus(Indexer\IndexerInterface $indexer)
9097
}
9198

9299
/**
100+
* Returns the pending count of the view
101+
*
93102
* @param Mview\ViewInterface $view
94103
* @return string
95104
*/

0 commit comments

Comments
 (0)