1
0

.php-cs-fixer.dist.php 646 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. $finder = PhpCsFixer\Finder::create()
  4. ->in(__DIR__ . '/src')
  5. ->in(__DIR__ . '/tests')
  6. ->in(__DIR__ . '/public');
  7. return (new PhpCsFixer\Config())
  8. ->setRiskyAllowed(true)
  9. ->setRules([
  10. '@PSR12' => true,
  11. '@PSR12:risky' => true,
  12. 'declare_strict_types' => true,
  13. 'array_syntax' => ['syntax' => 'short'],
  14. 'no_unused_imports' => true,
  15. 'ordered_imports' => ['sort_algorithm' => 'alpha'],
  16. 'single_quote' => true,
  17. 'trailing_comma_in_multiline' => true,
  18. ])
  19. ->setFinder($finder)
  20. ->setCacheFile(__DIR__ . '/.php-cs-fixer.cache');