Skip to content

Commit

Permalink
Fix php-cs-fixer violations
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jan 17, 2023
1 parent d990a1c commit 020ec67
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hooks:
use_dns_when_possible: true
composer_version: 2.2.17
web_environment:
- MAGERUN_SETUP_TEST_DEFAULT_MAGENTO_VERSION=2.4.5
- MAGERUN_SETUP_TEST_DEFAULT_MAGENTO_VERSION=2.4.6-beta1
nodejs_version: "16"

# Key features of ddev's config.yaml:
Expand Down
3 changes: 1 addition & 2 deletions src/N98/Magento/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
use BadMethodCallException;
use Composer\Autoload\ClassLoader;
use Exception;
use Magento\Framework\Console\Cli;
use Magento\Framework\ObjectManagerInterface;
use N98\Magento\Application\ApplicationAwareInterface;
use N98\Magento\Application\Config;
use N98\Magento\Application\ConfigurationLoader;
use N98\Magento\Application\Console\Events;
use N98\Magento\Application\MagentoCoreCommandProvider;
use N98\Magento\Application\DetectionResult;
use N98\Magento\Application\Magento1Initializer;
use N98\Magento\Application\Magento2Initializer;
use N98\Magento\Application\MagentoCoreCommandProvider;
use N98\Magento\Application\MagentoDetector;
use N98\Magento\Command\DummyCommand;
use N98\Magento\Command\MagentoCoreProxyCommandFactory;
Expand Down
3 changes: 2 additions & 1 deletion src/N98/Magento/Application/MagentoCoreCommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
declare(strict_types=1);

namespace N98\Magento\Application;

use N98\Magento\Command\MagentoCoreProxyCommandFactory;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
Expand Down Expand Up @@ -99,7 +100,7 @@ private function load()
*/
private function removeCommands(array $data, array $commandNamesToRemove)
{
return array_filter($data, function($row) use ($commandNamesToRemove) {
return array_filter($data, function ($row) use ($commandNamesToRemove) {
return !in_array($row['name'], $commandNamesToRemove, true);
});
}
Expand Down
9 changes: 5 additions & 4 deletions src/N98/Magento/Command/MagentoCoreProxyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace N98\Magento\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -129,9 +128,11 @@ private function processInputDefinitionOptions(InputDefinition $inputDefinition,
$normalizedName = substr($option['name'], 2);
$normalizedShortcut = substr($option['name'], 1);

if (in_array(
$normalizedName,
['help', 'quiet', 'verbose', 'version', 'ansi', 'no-ansi', 'no-interaction'])
if (
in_array(
$normalizedName,
['help', 'quiet', 'verbose', 'version', 'ansi', 'no-ansi', 'no-interaction']
)
) {
continue;
}
Expand Down

0 comments on commit 020ec67

Please sign in to comment.