Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2.  
  3. return PhpCsFixer\Config::create()
  4. ->setRiskyAllowed(true)
  5. ->setRules([
  6. '@Symfony' => true,
  7. '@Symfony:risky' => true,
  8. 'blank_line_after_opening_tag' => false,
  9. 'phpdoc_align' => false,
  10. 'array_syntax' => ['syntax' => 'short'],
  11. 'combine_consecutive_unsets' => true,
  12. 'general_phpdoc_annotation_remove' => ['expectedException', 'expectedExceptionMessage', 'expectedExceptionMessageRegExp'],
  13. 'heredoc_to_nowdoc' => true,
  14. 'no_extra_consecutive_blank_lines' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'],
  15. 'no_unreachable_default_argument_value' => true,
  16. 'no_useless_else' => true,
  17. 'no_useless_return' => true,
  18. 'ordered_class_elements' => true,
  19. 'ordered_imports' => true,
  20. 'php_unit_strict' => true,
  21. 'phpdoc_add_missing_param_annotation' => true,
  22. 'phpdoc_order' => true,
  23. 'psr4' => true,
  24. 'strict_comparison' => true,
  25. 'strict_param' => true,
  26. ])
  27. ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement