<?php if (!file_exists(__DIR__.'/src')) { exit(0); } return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, '@Symfony:risky' => true, '@PHPUnit48Migration:risky' => true, 'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice 'array_syntax' => ['syntax' => 'short'], 'fopen_flags' => false, 'ordered_imports' => true, 'protected_to_private' => false, // Part of @Symfony:risky in PHP-CS-Fixer 2.13.0. To be removed from the config file once upgrading 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'], // Part of future @Symfony ruleset in PHP-CS-Fixer To be removed from the config file once upgrading 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], ]) ->setRiskyAllowed(true) ->setFinder( PhpCsFixer\Finder::create() ->in(__DIR__.'/src') ->append([__FILE__]) ->exclude([ // directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code 'Symfony/Component/DependencyInjection/Tests/Fixtures', 'Symfony/Component/Routing/Tests/Fixtures/dumper', // fixture templates 'Symfony/Component/Templating/Tests/Fixtures/templates', 'Symfony/Bundle/FrameworkBundle/Tests/Fixtures/TemplatePathsCache', 'Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom', // generated fixtures 'Symfony/Component/VarDumper/Tests/Fixtures', // resource templates 'Symfony/Bundle/FrameworkBundle/Resources/views/Form', // explicit trigger_error tests 'Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/', ]) // Support for older PHPunit version ->notPath('Symfony/Bridge/PhpUnit/SymfonyTestsListener.php') // file content autogenerated by `var_export` ->notPath('Symfony/Component/Translation/Tests/fixtures/resources.php') // test template ->notPath('Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php') // explicit heredoc test ->notPath('Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php') // explicit trigger_error tests ->notPath('Symfony/Component/Debug/Tests/DebugClassLoaderTest.php') ) ;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.composer | Folder | 0755 |
|
|
.github | Folder | 0755 |
|
|
src | Folder | 0755 |
|
|
.appveyor.yml | File | 3.54 KB | 0644 |
|
.editorconfig | File | 286 B | 0644 |
|
.gitignore | File | 99 B | 0644 |
|
.php_cs.dist | File | 2.71 KB | 0644 |
|
.travis.yml | File | 11.47 KB | 0644 |
|
CHANGELOG-3.0.md | File | 43.92 KB | 0644 |
|
CHANGELOG-3.1.md | File | 36.48 KB | 0644 |
|
CHANGELOG-3.2.md | File | 49.99 KB | 0644 |
|
CHANGELOG-3.3.md | File | 59.02 KB | 0644 |
|
CHANGELOG-3.4.md | File | 81.53 KB | 0644 |
|
CODE_OF_CONDUCT.md | File | 3.36 KB | 0644 |
|
CONTRIBUTING.md | File | 1015 B | 0644 |
|
CONTRIBUTORS.md | File | 48.2 KB | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
README.md | File | 2.87 KB | 0644 |
|
UPGRADE-3.0.md | File | 52.05 KB | 0644 |
|
UPGRADE-3.1.md | File | 6.15 KB | 0644 |
|
UPGRADE-3.2.md | File | 7.75 KB | 0644 |
|
UPGRADE-3.3.md | File | 13.73 KB | 0644 |
|
UPGRADE-3.4.md | File | 17.62 KB | 0644 |
|
UPGRADE-4.0.md | File | 37 KB | 0644 |
|
composer.json | File | 5.22 KB | 0644 |
|
link | File | 2.39 KB | 0644 |
|
phpunit | File | 579 B | 0644 |
|
phpunit.xml.dist | File | 3.33 KB | 0644 |
|