1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mineadmin-mineadmin

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.php-cs-fixer.php 3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zds Отправлено 16.09.2024 09:43 6d85e67
<?php
$header = <<<'EOF'
This file is part of MineAdmin.
@link https://www.mineadmin.com
@document https://doc.mineadmin.com
@contact root@imoi.cn
@license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
EOF;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setParallelConfig(new PhpCsFixer\Runner\Parallel\ParallelConfig(8, 24))
->setRules([
'@PSR2' => true,
'@PhpCsFixer:risky' => true,
'@PSR12' => true,
'@PER-CS2.0' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PHP81Migration' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
'separate' => 'none',
'location' => 'after_declare_strict',
],
'array_syntax' => [
'syntax' => 'short'
],
'list_syntax' => [
'syntax' => 'short'
],
'concat_space' => [
'spacing' => 'one'
],
'blank_line_before_statement' => [
'statements' => [
'declare',
],
],
'general_phpdoc_annotation_remove' => [
'annotations' => [
'author'
],
],
'ordered_imports' => [
'imports_order' => [
'class', 'function', 'const',
],
'sort_algorithm' => 'alpha',
],
'single_line_comment_style' => [
'comment_types' => [
],
],
'yoda_style' => [
'always_move_variable' => false,
'equal' => false,
'identical' => false,
],
'phpdoc_align' => [
'align' => 'left',
],
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line',
],
'constant_case' => [
'case' => 'lower',
],
'class_attributes_separation' => true,
'combine_consecutive_unsets' => true,
'declare_strict_types' => true,
'linebreak_after_opening_tag' => true,
'lowercase_static_reference' => true,
'no_useless_else' => true,
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'not_operator_with_space' => false,
'ordered_class_elements' => true,
'php_unit_strict' => false,
'phpdoc_separation' => false,
'single_quote' => true,
'standardize_not_equals' => true,
'multiline_comment_opening_closing' => true,
'mb_str_functions' => true,
'set_type_to_cast' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'normalize_index_brace' => true,
'return_to_yield_from' => true,
'class_keyword' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('bin')
->exclude('runtime')
->in(__DIR__)
)
->setUsingCache(false);

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mineadmin-mineadmin.git
git@api.gitlife.ru:oschina-mirror/mineadmin-mineadmin.git
oschina-mirror
mineadmin-mineadmin
mineadmin-mineadmin
master