.php_cs.dist 483 B

12345678910111213141516171819
  1. <?php
  2. declare(strict_types=1);
  3. $finder = \PhpCsFixer\Finder::create()
  4. ->in(__DIR__.DIRECTORY_SEPARATOR.'src')
  5. ->in(__DIR__.DIRECTORY_SEPARATOR.'tests')
  6. ->append(['.php_cs.dist']);
  7. $rules = [
  8. '@Symfony' => true,
  9. 'declare_strict_types' => true,
  10. 'void_return' => true,
  11. 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
  12. ];
  13. return \PhpCsFixer\Config::create()
  14. ->setRules($rules)
  15. ->setFinder($finder);