Ai
1 Star 0 Fork 0

张成林/roach-php-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.php-cs-fixer.php 951 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kai Sassnowski 提交于 2024-01-05 12:43 +08:00 . chore: update copyright year
<?php
use Ergebnis\PhpCsFixer\Config;
$header = <<<EOF
Copyright (c) 2024 Kai Sassnowski
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
@see https://github.com/roach-php/roach
EOF;
$ruleSet = Config\RuleSet\Php80::create()
->withHeader($header)
->withRules(Config\Rules::fromArray([
'php_unit_test_class_requires_covers' => false,
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'method' => 'one',
'property' => 'one',
'trait_import' => 'none',
],
],
'error_suppression' => [
'noise_remaining_usages' => false,
],
]));
$config = Config\Factory::fromRuleSet($ruleSet);
$config->getFinder()->in(__DIR__);
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');
return $config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhang-chenglin/roach-php-core.git
git@gitee.com:zhang-chenglin/roach-php-core.git
zhang-chenglin
roach-php-core
roach-php-core
main

搜索帮助