mikelooper / code-style
PHP Code Style rules
Installs: 438
Dependents: 7
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
pkg:composer/mikelooper/code-style
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