.php_cs 645 B

1234567891011121314151617181920212223
  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. 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
  10. 'ordered_imports' => true,
  11. // 'phpdoc_align' => ['align'=>'vertical'],
  12. // 'native_function_invocation' => true,
  13. ])
  14. ->setFinder(
  15. PhpCsFixer\Finder::create()
  16. ->in(__DIR__.'/src')
  17. ->in(__DIR__.'/tests')
  18. ->name('*.php')
  19. )
  20. ;
  21. return $config;