a784d5c01f
* 2.7: fixed typo Revert "fixed typo" fixed typo fixed CS Avoid setting request attributes from signature arguments in AnnotationClassLoader [DependencyInjection] Add some missing typehints in YamlFileLoader [DependencyInjection] minor: Fix a DocBlock [HttpKernel] Give higher priority to adding request formats [FrameworkBundle] Fix third level headers for MarkdownDescriptor [TwigBundle] do not lose already set method calls #20411 fix Yaml parsing for very long quoted strings CS: apply is_null DX: remove invalid inheritdoc bumped Symfony version to 2.7.24 updated VERSION for 2.7.23 update CONTRIBUTORS for 2.7.23 updated CHANGELOG for 2.7.23 [FrameworkBundle] Skip test if xdebug.file_link_format is defined.
41 lines
1.9 KiB
PHP
41 lines
1.9 KiB
PHP
<?php
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules(array(
|
|
'@Symfony' => true,
|
|
'@Symfony:risky' => true,
|
|
'array_syntax' => array('syntax' => 'long'),
|
|
'no_unreachable_default_argument_value' => false,
|
|
'braces' => array('allow_single_line_closure' => true),
|
|
'heredoc_to_nowdoc' => false,
|
|
))
|
|
->setRiskyAllowed(true)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->exclude(array(
|
|
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
|
|
'src/Symfony/Component/DependencyInjection/Tests/Fixtures',
|
|
'src/Symfony/Component/Routing/Tests/Fixtures/dumper',
|
|
// fixture templates
|
|
'src/Symfony/Component/Templating/Tests/Fixtures/templates',
|
|
'src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom',
|
|
// generated fixtures
|
|
'src/Symfony/Component/VarDumper/Tests/Fixtures',
|
|
// resource templates
|
|
'src/Symfony/Bundle/FrameworkBundle/Resources/views/Form',
|
|
))
|
|
// file content autogenerated by `var_export`
|
|
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
|
|
// autogenerated xmls
|
|
->notPath('src/Symfony/Component/Console/Tests/Fixtures/application_1.xml')
|
|
->notPath('src/Symfony/Component/Console/Tests/Fixtures/application_2.xml')
|
|
// yml
|
|
->notPath('src/Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml')
|
|
// test template
|
|
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
|
|
// explicit heredoc test
|
|
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php')
|
|
)
|
|
;
|