.php_cs.dist 791 B

1234567891011121314151617181920
  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' => true,
  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. ])
  17. ->setRiskyAllowed(true)
  18. ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__.'/src'))
  19. ;