.php_cs.dist 775 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $header = <<<'EOF'
  3. This file is part of the 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. 'ordered_imports' => true,
  16. 'php_unit_construct' => true,
  17. 'php_unit_strict' => true,
  18. 'strict' => true,
  19. 'strict_param' => true,
  20. ))
  21. ->finder(
  22. PhpCsFixer\Finder::create()
  23. ->exclude('tests/Fixtures')
  24. ->in(__DIR__)
  25. )
  26. ;