You've already forked gitea-composer-upload-action
updating structure
This commit is contained in:
27
.php-cs-fixer.dist.php
Normal file
27
.php-cs-fixer.dist.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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;
|
||||
Reference in New Issue
Block a user