1 Star 3 Fork 1

xgdd1987/easyCMS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php-cs-fixer.php 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
xgdd1987 提交于 2024-08-17 14:27 . update
<?php
declare(strict_types=1);
/**
* This file is part of easyCMS.
*
* (c) 2024 easyCMS <easyCMS@easycms.net.cn>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
use CodeIgniter\CodingStandard\CodeIgniter4;
use Nexus\CsConfig\Factory;
use PhpCsFixer\Finder;
// vendor/bin/php-cs-fixer fix --verbose app
$finder = Finder::create()
->files()
->in([__DIR__])
->exclude(['build'])
->append([__FILE__]);
$overrides = [
'declare_strict_types' => true,
'phpdoc_order_by_value' => [
'annotations' => [
'author',
'covers',
'coversNothing',
'dataProvider',
'depends',
'group',
'internal',
'method',
// 'property',
// 'property-read',
// 'property-write',
'requires',
'throws',
'uses',
],
],
];
$options = [
'finder' => $finder,
'cacheFile' => 'build/.php-cs-fixer.cache',
];
return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary(
'easyCMS',
'easyCMS',
'easyCMS@easycms.net.cn',
2024,
);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/xgdd1987/easyCMS.git
git@gitee.com:xgdd1987/easyCMS.git
xgdd1987
easyCMS
easyCMS
develop

搜索帮助