You've already forked gitea-composer-upload-action
28 lines
498 B
PHP
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;
|