signpostmarv/php-cs-fixer-config
Composer 安装命令:
composer require signpostmarv/php-cs-fixer-config
包简介
PHP-CS-Fixer Config
README 文档
README
There's two different versions, one for general use & one for use on projects that use static analysis.
Installation & Usage
composer require --dev signpostmarv/php-cs-fixer-config- create your
.php_csor.php_cs.distfile and enter the corresponding code for the config you wish to use
General Use
return \SignpostMarv\CS\Config::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
With Static Analysis
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysis::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Customising Rules
- Extend
SignpostMarv\CS\Config - Either
- override the
SignpostMarv\CS\Config::DEFAULT_RULESarray const - override the
SignpostMarv\CS\Config::RuntimeResolveRules()static method as in ConfigUsedWithStaticAnalysis
- override the
统计信息
- 总下载量: 7.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 26
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2017-05-06