wucdbm / php-cs-fixers
Fixers for friendsofphp/php-cs-fixer
Installs: 2 030
Dependents: 25
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.0
- friendsofphp/php-cs-fixer: ~2.8
Requires (Dev)
- johnkary/phpunit-speedtrap: ^1.1 || ^2.0@dev
- justinrainbow/json-schema: ^5.0
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- php-cs-fixer/accessible-object: ^1.0
- phpunit/phpunit: ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5
- symfony/phpunit-bridge: ^3.2.2 || ^4.1.12
README
In your .php_cs file
<?php return PhpCsFixer\Config::create() ->registerCustomFixers([ // Register the Custom Fixer new \Wucdbm\PhpCsFixer\Fixer\EnsureBlankLineAfterClassOpeningFixer() ]) ->setRules([ '@Symfony' => true, // And add it to your list of rules 'Wucdbm/ensure_blank_line_after_class_opening' => true ]);
wucdbm custom rule set with copyright - as per this project's .php_cs
file
<?php use Wucdbm\PhpCsFixer\Config\ConfigFactory; $copyright = <<<COMMENT This file is part of the Wucdbm PhpCSFixers package. (c) Martin Kirilov <wucdbm@gmail.com> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. COMMENT; return ConfigFactory::createCopyrightedConfig([ __DIR__ . '/src', __DIR__ . '/tests' ], $copyright) ->setUsingCache(false);
wucdbm custom rule set - no copyright
<?php use Wucdbm\PhpCsFixer\Config\ConfigFactory; return ConfigFactory::createConfig(__DIR__ . '/src') ->setUsingCache(false);