.php-cs-fixer.php 783 B

12345678910111213141516171819202122
  1. <?php
  2. $finder = PhpCsFixer\Finder::create()
  3. ->in('src');
  4. return (new PhpCsFixer\Config())
  5. ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
  6. ->setUsingCache(false)
  7. ->setRiskyAllowed(true)
  8. ->setRules([
  9. '@PhpCsFixer' => true,
  10. 'declare_strict_types' => true,
  11. 'single_line_comment_style' => ['comment_types' => ['hash']],
  12. 'general_phpdoc_annotation_remove' => ['annotations' => ['author'], 'case_sensitive' => false],
  13. 'global_namespace_import' => [
  14. 'import_classes' => true,
  15. 'import_constants' => true,
  16. 'import_functions' => true,
  17. ],
  18. 'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
  19. ])
  20. ->setFinder($finder);