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

OSCHINA-MIRROR/inhere-php-console

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.php-cs-fixer.php 1.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Inhere Отправлено 26.09.2021 15:45 d237b6b
<?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);

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

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

1
https://api.gitlife.ru/oschina-mirror/inhere-php-console.git
git@api.gitlife.ru:oschina-mirror/inhere-php-console.git
oschina-mirror
inhere-php-console
inhere-php-console
master