mikelooper / code-style
PHP Code Style rules
0.0.2
2023-11-27 18:43 UTC
Requires
README
- Install the dependency
composer require --dev mikelooper/coding-style
- Add it to your
ecs.php
file:use Shared\Infrastructure\CodingStyle; use Symplify\EasyCodingStandard\Config\ECSConfig; return function (ECSConfig $ecsConfig): void { $ecsConfig->paths([__DIR__ . '/src',]); $ecsConfig->sets([CodingStyle::DEFAULT]); // Or this if you prefer to have the code aligned // $ecsConfig->sets([CodingStyle::ALIGNED]); };
- Execute it:
./vendor/bin/ecs check