代码拉取完成,页面将自动刷新
<?php
$header = <<<'EOF'
The file is part of inhere/console
@author https://github.com/inhere
@homepage https://github.com/inhere/php-console
@license https://github.com/inhere/php-console/blob/master/LICENSE
EOF;
$rules = [
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short'
],
'list_syntax' => [
'syntax' => 'short'
],
'class_attributes_separation' => true,
'declare_strict_types' => true,
'global_namespace_import' => [
'import_constants' => true,
'import_functions' => true,
],
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
'separate' => 'bottom'
],
'no_unused_imports' => true,
'return_type_declaration' => [
'space_before' => 'none',
],
'single_quote' => true,
'standardize_not_equals' => true,
'void_return' => true, // add :void for method
];
$finder = PhpCsFixer\Finder::create()
->exclude('docs')
->exclude('vendor')
->exclude('resource')
->in(__DIR__);
return (new PhpCsFixer\Config)
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder)
->setUsingCache(false);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。