.php-cs-fixer.dist.php 685 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. $finder = PhpCsFixer\Finder::create()
  4. ->in(__DIR__.'/src')
  5. ->in(__DIR__.'/tests');
  6. $config = new PhpCsFixer\Config();
  7. return $config->setRules([
  8. '@Symfony' => true,
  9. '@Symfony:risky' => true,
  10. 'native_function_invocation' => ['include'=> ['@all']],
  11. 'native_constant_invocation' => true,
  12. 'ordered_imports' => true,
  13. 'declare_strict_types' => false,
  14. 'linebreak_after_opening_tag' => false,
  15. 'single_import_per_statement' => false,
  16. 'blank_line_after_opening_tag' => false,
  17. 'concat_space' => ['spacing'=>'one'],
  18. 'phpdoc_align' => ['align'=>'left'],
  19. ])
  20. ->setRiskyAllowed(true)
  21. ->setFinder($finder);