代码拉取完成,页面将自动刷新
<?php
/**
* Php-Cs-Fixer config file
*/
use PhpCsFixer\Config;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'class_attributes_separation' => [
'elements' => ['const' => 'one', 'method' => 'one', 'property' => 'one', 'trait_import' => 'none' ],
],
'array_syntax' => [
'syntax' => 'short'
],
'list_syntax' => [
'syntax' => 'short'
],
// 'concat_space' => [
// 'spacing' => 'one'
// ],
'blank_line_before_statement' => [
'statements' => [
'declare',
],
],
'ordered_imports' => [
'imports_order' => [
'class', 'function', 'const',
],
'sort_algorithm' => 'alpha',
],
'combine_consecutive_unsets' => true,
'declare_strict_types' => false,
'linebreak_after_opening_tag' => true,
'lowercase_static_reference' => true,
'no_useless_else' => true,
//'not_operator_with_successor_space' => true,
'not_operator_with_space' => false,
'ordered_class_elements' => true,
'php_unit_strict' => false,
'phpdoc_separation' => false,
'multiline_comment_opening_closing' => true,
'single_quote' => true,
'no_unused_imports' => true,
'no_singleline_whitespace_before_semicolons' => true,
'self_accessor' => true,
'binary_operator_spaces' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => true,
'no_blank_lines_after_class_opening' => true,
'include' => true,
'no_trailing_comma_in_list_call' => true,
'no_leading_namespace_whitespace' => true,
'standardize_not_equals' => true,
])
// ->setFinder(
// PhpCsFixer\Finder::create()
// ->exclude('vendor')
// ->in(__DIR__)
// )
->setUsingCache(true);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。