代码拉取完成,页面将自动刷新
<?php
/**
* This file is part of Swow
*
* @link https://github.com/swow/swow
* @contact twosee <twosee@php.net>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code
*/
declare(strict_types=1);
use Swow\PhpCsFixer\Config;
return (new Config())
->setHeaderComment(
projectName: 'Swow',
projectLink: 'https://github.com/swow/swow',
contactName: 'twosee',
contactMail: 'twosee@php.net'
)->setFinder(
PhpCsFixer\Finder::create()
->name([
'*.php',
'*.phpt',
'*.inc',
])
->in([
__DIR__ . '/.github',
__DIR__ . '/.phan',
__DIR__ . '/benchmark',
__DIR__ . '/examples',
__DIR__ . '/ext',
__DIR__ . '/lib',
__DIR__ . '/tools',
])
->notName([
'Swow.php',
'run-tests*.php',
])
->filter(static function (Symfony\Component\Finder\SplFileInfo $fileInfo): bool {
$pathname = $fileInfo->getPathname();
if (empty($GLOBALS['exclude_file_path_list'])) {
foreach (
[
__DIR__ . '/ext/tests/swow_closure/use.inc',
__DIR__ . '/ext/tests/swow_closure/use.inc.inc',
__DIR__ . '/ext/tests/swow_closure/multiple_ns.inc',
] as $excludeFilePath
) {
$GLOBALS['exclude_file_path_list'][] = substr($excludeFilePath, strlen(__DIR__) + strlen('/'));
}
}
foreach ($GLOBALS['exclude_file_path_list'] as $excludeFilePath) {
if (strrpos($pathname, $excludeFilePath) !== false) {
return false;
}
}
if (str_contains($pathname, 'ext/build')) {
return false;
}
if (preg_match('/ext\/tests\/.+\.php$/', $pathname)) {
if (strrpos($pathname, 'ext/tests/include') !== false) {
return true;
}
return false;
}
return true;
})
->append([
__FILE__,
__DIR__ . '/ext/bin/swow-builder',
__DIR__ . '/lib/dontdie/dontdie',
])
);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。