4 Star 3 Fork 5

Gitee 极速下载 / Mautic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mautic/mautic
克隆/下载
.php-cs-fixer.php 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
require 'autoload.php';
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/app/bundles')
->exclude('CoreBundle/Tests/_support/_generated')
->in(__DIR__.'/app/config')
->in(__DIR__.'/app/middlewares')
->in(__DIR__.'/app/migrations')
->in(__DIR__.'/plugins')
->in(__DIR__.'/.github/workflows/mautic-asset-upload')
->append([__DIR__.'/rector.php', __DIR__.'/rector-older-symfony.php', __DIR__.'/.php-cs-fixer.php', __DIR__.'/ecs.php']);
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
'=' => 'align',
],
],
'phpdoc_to_comment' => false,
'ordered_imports' => true,
'array_syntax' => [
'syntax' => 'short',
],
'no_unused_imports' => true,
/**
* Our templates rely heavily on things like endforeach, endif, etc.
* This setting should be turned off at least until we've switched to Twig
* (which is required for Symfony 5).
*/
'no_alternative_syntax' => false,
'header_comment' => [
'header' => '',
],
'Mautic/no_table_prefix_definition_in_tests' => true,
'multiline_whitespace_before_semicolons' => true,
'nullable_type_declaration_for_default_null_value' => false, // Enforces potential BC breaks. Enable for Mautic 6.
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
])
->registerCustomFixers([new Mautic\CodingStandards\PhpCSFixer\NoTablePrefixDefinitionInTestsFixer()])
->setFinder($finder);
PHP
1
https://gitee.com/mirrors/Mautic.git
git@gitee.com:mirrors/Mautic.git
mirrors
Mautic
Mautic
5.x

搜索帮助