eloquent / code-style
This package is abandoned and no longer maintained.
No replacement package was suggested.
The Eloquent code style definition for PHP.
2.0.1
2023-02-12 09:41 UTC
Requires
Requires (Dev)
- phpstan/phpstan: ^1
README
No longer maintained
This package is no longer maintained. See this statement for more info.
Eloquent PHP code style definition
Installation
Install dependencies:
composer require --dev friendsofphp/php-cs-fixer eloquent/code-style
Add a .php-cs-fixer.php file:
<?php return Eloquent\CodeStyle\Config::create(__DIR__);
To customize excluded paths, access the existing finder object:
<?php $config = Eloquent\CodeStyle\Config::create(__DIR__); $config->getFinder()->exclude([ 'artifacts', 'test/fixture', ]); return $config;
Usage
vendor/bin/php-cs-fixer fix