.php_cs 536 B

123456789101112131415161718192021
  1. <?php
  2. $config = PhpCsFixer\Config::create()
  3. ->setRiskyAllowed(true)
  4. ->setRules([
  5. '@PSR2' => true,
  6. 'array_syntax' => ['syntax' => 'short'],
  7. 'declare_strict_types' => false,
  8. 'concat_space' => ['spacing'=>'one'],
  9. // 'ordered_imports' => true,
  10. // 'phpdoc_align' => ['align'=>'vertical'],
  11. // 'native_function_invocation' => true,
  12. ])
  13. ->setFinder(
  14. PhpCsFixer\Finder::create()
  15. ->in(__DIR__.'/src')
  16. ->name('*.php')
  17. )
  18. ;
  19. return $config;