.php_cs.dist 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. return PhpCsFixer\Config::create()
  3. ->setRiskyAllowed(true)
  4. ->setRules(array(
  5. '@Symfony' => true,
  6. '@Symfony:risky' => true,
  7. 'array_syntax' => true,
  8. 'concat_space' => ['spacing' => 'one'],
  9. 'is_null' => ['use_yoda_style' => false],
  10. 'no_php4_constructor' => true,
  11. 'no_short_echo_tag' => true,
  12. 'no_unreachable_default_argument_value' => true,
  13. 'no_useless_return' => true,
  14. 'ordered_imports' => true,
  15. 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
  16. 'phpdoc_align' => false,
  17. 'phpdoc_order' => true,
  18. 'pre_increment' => false,
  19. 'protected_to_private' => false,
  20. ))
  21. ->setCacheFile(__DIR__ . '/.php_cs.cache')
  22. ->setFinder(PhpCsFixer\Finder::create()
  23. ->exclude('vendor')
  24. ->exclude('cache')
  25. ->in(__DIR__)
  26. )
  27. ;
  28. /*
  29. This document has been generated with
  30. https://mlocati.github.io/php-cs-fixer-configurator/?version=2.2#configurator
  31. you can change this configuration by importing this YAML code:
  32. version: 2.2.20
  33. expandSets: false
  34. fixerSets:
  35. - '@Symfony'
  36. - '@Symfony:risky'
  37. risky: true
  38. fixers:
  39. array_syntax: true
  40. concat_space:
  41. spacing: one
  42. is_null:
  43. use_yoda_style: false
  44. no_php4_constructor: true
  45. no_short_echo_tag: true
  46. no_unreachable_default_argument_value: true
  47. no_useless_return: true
  48. ordered_imports: true
  49. phpdoc_add_missing_param_annotation:
  50. only_untyped: false
  51. phpdoc_align: false
  52. phpdoc_order: true
  53. pre_increment: false
  54. protected_to_private: false
  55. */