Skip to content

Commit 6f14ca2

Browse files
committed
Minor changes
1 parent 83e6070 commit 6f14ca2

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

app/code/Magento/Developer/Console/Command/TemplateHintsStatusCommand.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77

88
namespace Magento\Developer\Console\Command;
99

10+
use Magento\Framework\App\Config\ReinitableConfigInterface;
11+
use Magento\Framework\App\Config\ScopeConfigInterface;
12+
use Magento\Framework\Console\Cli;
1013
use Symfony\Component\Console\Command\Command;
1114
use Symfony\Component\Console\Input\InputInterface;
1215
use Symfony\Component\Console\Output\OutputInterface;
13-
use Magento\Framework\App\Config\ScopeConfigInterface;
14-
use Magento\Framework\App\Config\ReinitableConfigInterface;
15-
use Magento\Framework\Console\Cli;
1616

1717
/**
1818
* Command to show frontend template hints status
1919
*/
2020
class TemplateHintsStatusCommand extends Command
2121
{
22-
2322
const COMMAND_NAME = 'dev:template-hints:status';
2423
const TEMPLATE_HINTS_STOREFRONT_PATH = 'dev/debug/template_hints_storefront';
2524

2625
/**
2726
* @var ScopeConfigInterface
2827
*/
2928
private $scopeConfig;
29+
3030
/**
3131
* @var ReinitableConfigInterface
3232
*/
@@ -41,8 +41,7 @@ class TemplateHintsStatusCommand extends Command
4141
public function __construct(
4242
ScopeConfigInterface $scopeConfig,
4343
ReinitableConfigInterface $reinitableConfig
44-
)
45-
{
44+
) {
4645
parent::__construct();
4746
$this->scopeConfig = $scopeConfig;
4847
$this->reinitableConfig = $reinitableConfig;
@@ -51,7 +50,7 @@ public function __construct(
5150
/**
5251
* @inheritdoc
5352
*/
54-
protected function configure()
53+
public function configure()
5554
{
5655
$this->setName(self::COMMAND_NAME)
5756
->setDescription('Show frontend template hints status.');
@@ -63,7 +62,7 @@ protected function configure()
6362
* @inheritdoc
6463
* @throws \InvalidArgumentException
6564
*/
66-
protected function execute(InputInterface $input, OutputInterface $output)
65+
public function execute(InputInterface $input, OutputInterface $output)
6766
{
6867
$this->reinitableConfig->reinit();
6968
$templateHintsStatus =

app/code/Magento/Developer/Test/Unit/Console/Command/TemplateHintsStatusCommandTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
namespace Magento\Developer\Test\Unit\Console\Command;
99

10-
use PHPUnit\Framework\TestCase;
11-
use Symfony\Component\Console\Tester\CommandTester;
1210
use Magento\Developer\Console\Command\TemplateHintsStatusCommand;
13-
use Magento\Framework\App\Config\ScopeConfigInterface;
1411
use Magento\Framework\App\Config\ReinitableConfigInterface;
12+
use Magento\Framework\App\Config\ScopeConfigInterface;
13+
use PHPUnit\Framework\TestCase;
14+
use Symfony\Component\Console\Tester\CommandTester;
1515

1616
/**
1717
* Class TemplateHintsStatusCommandTest
@@ -35,7 +35,7 @@ class TemplateHintsStatusCommandTest extends TestCase
3535
private $reinitableConfigMock;
3636

3737
/**
38-
* TemplateHintsStatusCommandTest setup
38+
* @inheritDoc
3939
*/
4040
protected function setUp()
4141
{
@@ -46,11 +46,10 @@ protected function setUp()
4646
$this->scopeConfigMock,
4747
$this->reinitableConfigMock
4848
);
49-
5049
}
5150

5251
/**
53-
* Test execution
52+
* Verify execution
5453
*/
5554
public function testExecute()
5655
{
@@ -62,4 +61,4 @@ public function testExecute()
6261
$tester->getStatusCode()
6362
);
6463
}
65-
}
64+
}

0 commit comments

Comments
 (0)