12345678910111213141516171819202122232425 |
- <?php
- declare(strict_types=1);
- $finder = PhpCsFixer\Finder::create()
- ->files()
- ->in(__DIR__ . '/bin')
- ->in(__DIR__ . '/src')
- ->in(__DIR__ . '/tests')
- ->append([__FILE__])
- ->notName('DefaultRuleProvider.php')
- ;
- $config = new PhpCsFixer\Config();
- $config
- ->setFinder($finder)
- ->setRiskyAllowed(true)
- ->setRules([
- '@PSR2' => true,
- 'no_empty_phpdoc' => true,
- 'php_unit_fqcn_annotation' => true,
- 'php_unit_test_annotation' => true,
- 'phpdoc_trim' => true,
- ]);
- return $config;
|