Files
gitea-composer-upload-action/.php-cs-fixer.dist.php
2024-08-25 18:34:01 +03:00

28 lines
498 B
PHP

<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PHPyh\CodingStandard\PhpCsFixerCodingStandard;
$finder = Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->append([
__FILE__,
])
->notPath([
'benchmark.php',
]);
$config = (new Config())
->setFinder($finder)
->setCacheFile(__DIR__ . '/var/.php-cs-fixer.cache');
(new PhpCsFixerCodingStandard())->applyTo($config);
return $config;