Skip to content

Commit

Permalink
updated phing
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Dec 16, 2024
1 parent 35541e7 commit cda04a9
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 58 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"composer/composer": "^2.7",
"friendsofphp/php-cs-fixer": "^3.4",
"mikey179/vfsstream": "^1.6",
"phing/phing": "~2.17.0",
"phing/phing": "~3.0.1",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
Expand Down
260 changes: 215 additions & 45 deletions composer.lock

Large diffs are not rendered by default.

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 @@ -4,7 +4,6 @@

namespace N98\Magento\Command\Config;

use Path;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -138,7 +137,7 @@ protected function renderAsTable(OutputInterface $output, array $table, ?string

$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 @@ -4,7 +4,6 @@

namespace N98\Magento\Command\Database;

use Description;
use N98\Util\Filesystem;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
Expand Down Expand Up @@ -76,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
false === $this->_input->getOption('no-description');
$header = ['Variable Name', 'Value'];
if ($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 @@ -8,7 +8,6 @@
use Mage_Adminhtml_Model_Email_Template;
use Mage_Core_Model_Email_Template;
use N98\Magento\Command\AbstractMagentoCommand;
use Path;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -40,7 +39,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($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 Expand Up @@ -84,7 +83,7 @@ protected function findEmailTemplates(): array
'Template Code' => $this->sanitizeEmailProperty($template->getTemplateCode()),
'Scope' => $this->sanitizeEmailProperty($configPath['scope']),
'Scope Id' => $this->sanitizeEmailProperty($configPath['scope_id']),
Path::class => $this->sanitizeEmailProperty($configPath['path']),
'Path' => $this->sanitizeEmailProperty($configPath['path']),
];
}
}
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 @@ -8,7 +8,6 @@
use Mage_Core_Model_Store;
use N98\Magento\Command\AbstractMagentoCommand;
use N98\Magento\Command\AbstractMagentoStoreConfigCommand;
use Parameter;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -74,7 +73,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 @@ -4,8 +4,6 @@

namespace N98\Magento\Command\Script\Repository;

use Description;
use Location;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -60,7 +58,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 Command::SUCCESS;
Expand Down

0 comments on commit cda04a9

Please sign in to comment.