| 12345678910111213141516171819 |
- <?php
- declare(strict_types=1);
- $finder = \PhpCsFixer\Finder::create()
- ->in(__DIR__.DIRECTORY_SEPARATOR.'src')
- ->in(__DIR__.DIRECTORY_SEPARATOR.'tests')
- ->append(['.php_cs.dist']);
- $rules = [
- '@Symfony' => true,
- 'declare_strict_types' => true,
- 'void_return' => true,
- 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
- ];
- return \PhpCsFixer\Config::create()
- ->setRules($rules)
- ->setFinder($finder);
|