.php_cs.dist 507 B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * Configuration for fabpot/php-cs-fixer
  4. *
  5. * @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
  6. */
  7. $finder = PhpCsFixer\Finder::create()
  8. ->in('src')
  9. ->in('spec')
  10. ;
  11. return PhpCsFixer\Config::create()
  12. ->setRules([
  13. '@PSR2' => true,
  14. '@Symfony' => true,
  15. 'array_syntax' => [
  16. 'syntax' => 'short',
  17. ],
  18. 'no_empty_phpdoc' => true,
  19. 'phpdoc_to_comment' => false,
  20. 'single_line_throw' => false,
  21. ])
  22. ->setFinder($finder);