Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 16, 2023
1 parent 4763646 commit d0edc1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bin/config-transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symplify\ConfigTransformer\Console\ConfigTransformerApplication;
use Symplify\ConfigTransformer\Kernel\ConfigTransformerContainerFactory;

$possibleAutoloadPaths = [
Expand All @@ -27,12 +28,11 @@
require_once $scoperAutoloadFilepath;
}

$configTransformerKernel = new ConfigTransformerContainerFactory();
$configTransformerKernel->boot();
$configTransformerContainerFactory = new ConfigTransformerContainerFactory();
$container = $configTransformerContainerFactory->create();

$container = $configTransformerKernel->getContainer();

$configTransformerApplication = $container->get(\Symplify\ConfigTransformer\Console\ConfigTransformerApplication::class);
/** @var ConfigTransformerApplication $configTransformerApplication */
$configTransformerApplication = $container->get(ConfigTransformerApplication::class);

$input = new ArgvInput();
$output = new ConsoleOutput();
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ parameters:
level: 8

paths:
- bin
- src
- config
- tests
Expand Down
5 changes: 3 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
PHPUnitSetList::PHPUNIT_100,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
LevelSetList::UP_TO_PHP_81,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_81,
SetList::CODING_STYLE,
SetList::TYPE_DECLARATION,
SetList::NAMING,
SetList::PRIVATIZATION,
SetList::EARLY_RETURN,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
]);

$rectorConfig->paths([
__DIR__ . '/bin',
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
Expand Down

0 comments on commit d0edc1d

Please sign in to comment.