.php_cs.dist 695 B

123456789101112131415161718
  1. <?php
  2. return PhpCsFixer\Config::create()
  3. ->setRules([
  4. '@Symfony' => true,
  5. '@Symfony:risky' => true,
  6. 'array_syntax' => ['syntax' => 'short'],
  7. 'php_unit_fqcn_annotation' => true,
  8. 'no_unreachable_default_argument_value' => false,
  9. 'braces' => ['allow_single_line_closure' => true],
  10. 'heredoc_to_nowdoc' => false,
  11. 'ordered_imports' => true,
  12. 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
  13. 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
  14. ])
  15. ->setRiskyAllowed(true)
  16. ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
  17. ;