.php-cs-fixer.dist.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $config = new PhpCsFixer\Config();
  3. $config
  4. ->setUsingCache(true)
  5. ->setRiskyAllowed(true)
  6. ->setRules([
  7. '@Symfony' => true,
  8. 'array_indentation' => true,
  9. 'cast_spaces' => [
  10. 'space' => 'single',
  11. ],
  12. 'combine_consecutive_issets' => true,
  13. 'concat_space' => [
  14. 'spacing' => 'one',
  15. ],
  16. 'error_suppression' => [
  17. 'mute_deprecation_error' => false,
  18. 'noise_remaining_usages' => false,
  19. 'noise_remaining_usages_exclude' => [],
  20. ],
  21. 'function_to_constant' => false,
  22. 'global_namespace_import' => true,
  23. 'method_chaining_indentation' => true,
  24. 'no_alias_functions' => false,
  25. 'no_superfluous_phpdoc_tags' => false,
  26. 'non_printable_character' => [
  27. 'use_escape_sequences_in_strings' => true,
  28. ],
  29. 'phpdoc_align' => [
  30. 'align' => 'left',
  31. ],
  32. 'phpdoc_summary' => false,
  33. 'protected_to_private' => false,
  34. 'self_accessor' => false,
  35. 'yoda_style' => false,
  36. 'single_line_throw' => false,
  37. 'no_alias_language_construct_call' => false,
  38. ])
  39. ->getFinder()
  40. ->in(__DIR__)
  41. ->exclude('vendor');
  42. return $config;