5 Star 8 Fork 7

Gitee 极速下载/pfsense

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/pfsense/pfsense
克隆/下载
rector.php 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Tools\Rector\Rector\Rules;
return static function (RectorConfig $rectorConfig): void {
// Recursively check these paths...
$rectorConfig->paths([
__DIR__ . '/src',
]);
// for files with these extensions...
$rectorConfig->fileExtensions([
'php',
'inc',
]);
// while skipping third-pary code that isn't our concern.
$rectorConfig->skip([
__DIR__ . '/src/usr/local/pfSense/include/vendor/*',
__DIR__ . '/src/etc/inc/priv.defs.inc',
]);
/*
* Register Rector rules or rulesets here
*
* See https://github.com/rectorphp/rector#running-rector
*
* Place custom Rectors in tools/rector/src/Rector named
* SomeDescriptiveNameRector.php namespaced as "Tools\Rector\Rector".
* Class should be "final" qualified, extend AbstractRector
* and the same name as the filename.
*
* See https://github.com/rectorphp/rector/blob/main/docs/create_own_rule.md
*/
$rectorConfig->ruleWithConfiguration(Rules\ArrayGetExprRector::class,
['g' => 'g_get',
'config' => 'config_get_path']);
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mirrors/pfsense.git
git@gitee.com:mirrors/pfsense.git
mirrors
pfsense
pfsense
master

搜索帮助