.php_cs.dist 819 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. $header = <<<'EOF'
  3. This file is part of PHP CS Fixer.
  4. (c) Fabien Potencier <fabien@symfony.com>
  5. Dariusz Rumiński <dariusz.ruminski@gmail.com>
  6. This source file is subject to the MIT license that is bundled
  7. with this source code in the file LICENSE.
  8. EOF;
  9. return PhpCsFixer\Config::create()
  10. ->setRiskyAllowed(true)
  11. ->setRules(array(
  12. '@Symfony' => true,
  13. 'header_comment' => array('header' => $header),
  14. 'long_array_syntax' => true,
  15. 'no_useless_return' => true,
  16. 'ordered_imports' => true,
  17. 'php_unit_construct' => true,
  18. 'php_unit_strict' => true,
  19. 'strict_comparison' => true,
  20. 'strict_param' => true,
  21. ))
  22. ->finder(
  23. PhpCsFixer\Finder::create()
  24. ->exclude('tests/Fixtures')
  25. ->in(__DIR__)
  26. )
  27. ;