wucdbm/php-cs-fixers
最新稳定版本:v0.4.0
Composer 安装命令:
composer require wucdbm/php-cs-fixers
包简介
Fixers for friendsofphp/php-cs-fixer
README 文档
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);
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 24
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-30