.php_cs.dist 831 B

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