代码拉取完成,页面将自动刷新
composer fixcs
after CS Fixer update (#13642)
<?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);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。