- Install the dependency
composer require --dev mikelooper/coding-style
- Add it to your
ecs.phpfile: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
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|