Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhor committed Feb 14, 2024
1 parent 8d3783d commit 3df59da
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use PhpCsFixer\Fixer\Operator\ConcatSpaceFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function (ECSConfig $ecsConfig): void {
$parameters = $ecsConfig->parameters();
$parameters->set(Option::PATHS, [__DIR__.'/src', __DIR__.'/tests']);

$ecsConfig->sets([SetList::PSR_12]);

$services = $ecsConfig->services();
$services->set(ConcatSpaceFixer::class)->call('configure', [[
'spacing' => 'none',
]]);

$services->set(BinaryOperatorSpacesFixer::class)->call('configure', [[
'operators' => ['=>' => 'align'],
]]);
};
return ECSConfig::configure()
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
->withPreparedSets(true)
->withConfiguredRule(ConcatSpaceFixer::class, ['spacing' => 'none',])
->withConfiguredRule(BinaryOperatorSpacesFixer::class, ['operators' => ['=>' => 'align']]);

0 comments on commit 3df59da

Please sign in to comment.