Skip to content

Commit

Permalink
fix: phpstan issues with wrong imported classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Dec 18, 2024
1 parent f776868 commit 4c7b39c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/N98/Magento/Command/Config/GetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace N98\Magento\Command\Config;

use Path;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -139,7 +138,7 @@ protected function renderAsTable(OutputInterface $output, $table, $format)

$tableHelper = $this->getTableHelper();
$tableHelper
->setHeaders([Path::class, 'Scope', 'Scope-ID', 'Value'])
->setHeaders(['Path', 'Scope', 'Scope-ID', 'Value'])
->setRows($formattedTable)
->renderByFormat($output, $formattedTable, $format);
}
Expand Down
3 changes: 1 addition & 2 deletions src/N98/Magento/Command/Database/AbstractShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace N98\Magento\Command\Database;

use Description;
use N98\Util\Filesystem;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -92,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
false === $this->_input->getOption('no-description');
$header = ['Variable Name', 'Value'];
if (true === $hasDescription) {
$header[] = Description::class;
$header[] = 'Description';
}

$this->renderTable($header, $this->generateRows($outputVars, $hasDescription));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Mage_Adminhtml_Model_Email_Template;
use Mage_Core_Model_Template;
use N98\Magento\Command\AbstractMagentoCommand;
use Path;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

Expand Down Expand Up @@ -43,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if (!empty($templates)) {
$tableHelper = $this->getTableHelper();
$tableHelper
->setHeaders(['id', 'Name', 'Scope', 'Scope Id', Path::class])
->setHeaders(['id', 'Name', 'Scope', 'Scope Id', 'Path'])
->renderByFormat($output, $templates, $input->getOption('format'));
} else {
$output->writeln('No transactional email templates stored in the database.');
Expand Down
3 changes: 1 addition & 2 deletions src/N98/Magento/Command/Developer/Theme/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Mage_Core_Model_Store;
use N98\Magento\Command\AbstractMagentoCommand;
use N98\Magento\Command\AbstractMagentoStoreConfigCommand;
use Parameter;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

Expand Down Expand Up @@ -69,7 +68,7 @@ protected function _displayTable(OutputInterface $output, Mage_Core_Model_Store

$tableHelper = $this->getTableHelper();
$tableHelper
->setHeaders([Parameter::class, 'Value'])
->setHeaders(['Parameter', 'Value'])
->renderByFormat($output, $storeInfoLines);

return $this;
Expand Down
4 changes: 1 addition & 3 deletions src/N98/Magento/Command/Script/Repository/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace N98\Magento\Command\Script\Repository;

use Description;
use Location;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

Expand Down Expand Up @@ -66,7 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$tableHelper = $this->getTableHelper();
$tableHelper
->setHeaders(['Script', Location::class, Description::class])
->setHeaders(['Script', 'Location', 'Description'])
->renderByFormat($output, $table, $input->getOption('format'));
return 0;
}
Expand Down

0 comments on commit 4c7b39c

Please sign in to comment.