1
0

.php-cs-fixer.dist.php 676 B

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