Fixers for friendsofphp/php-cs-fixer

v0.4.0 2021-02-12 00:14 UTC

This package is auto-updated.

Last update: 2021-11-12 02:04:21 UTC


In your .php_cs file


return PhpCsFixer\Config::create()
        // Register the Custom Fixer
        new \Wucdbm\PhpCsFixer\Fixer\EnsureBlankLineAfterClassOpeningFixer()
        '@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


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.

return ConfigFactory::createCopyrightedConfig([
    __DIR__ . '/src',
    __DIR__ . '/tests'
], $copyright)

wucdbm custom rule set - no copyright


use Wucdbm\PhpCsFixer\Config\ConfigFactory;

return ConfigFactory::createConfig(__DIR__ . '/src')