FlagPole/.php-cs-fixer.dist.php
Funky Waddle b57ef58ea4
Some checks are pending
CI / PHP ${{ matrix.php }} (8.1) (push) Waiting to run
CI / PHP ${{ matrix.php }} (8.2) (push) Waiting to run
CI / PHP ${{ matrix.php }} (8.3) (push) Waiting to run
Initial commit
2025-12-09 16:48:07 -06:00

27 lines
612 B
PHP

<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new Config())
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_unused_imports' => true,
'declare_strict_types' => true,
'no_trailing_whitespace' => true,
'single_quote' => true,
'no_superfluous_phpdoc_tags' => true,
]);