.php_cs.dist 726 B

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