| 1234567891011121314151617181920212223 |
- <?php
- declare(strict_types=1);
- $finder = PhpCsFixer\Finder::create()
- ->in(__DIR__ . '/src')
- ->in(__DIR__ . '/tests')
- ->in(__DIR__ . '/public');
- return (new PhpCsFixer\Config())
- ->setRiskyAllowed(true)
- ->setRules([
- '@PSR12' => true,
- '@PSR12:risky' => true,
- 'declare_strict_types' => true,
- 'array_syntax' => ['syntax' => 'short'],
- 'no_unused_imports' => true,
- 'ordered_imports' => ['sort_algorithm' => 'alpha'],
- 'single_quote' => true,
- 'trailing_comma_in_multiline' => true,
- ])
- ->setFinder($finder)
- ->setCacheFile(__DIR__ . '/.php-cs-fixer.cache');
|