You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
622 B
PHP
33 lines
622 B
PHP
<?php
|
|
|
|
use CodeIgniter\CodingStandard\CodeIgniter4;
|
|
use Nexus\CsConfig\Factory;
|
|
use PhpCsFixer\Finder;
|
|
|
|
$finder = Finder::create()
|
|
->files()
|
|
->in([
|
|
__DIR__ . '/src/',
|
|
__DIR__ . '/tests/',
|
|
])
|
|
->exclude([
|
|
'build',
|
|
'Views',
|
|
])
|
|
->append([
|
|
__FILE__,
|
|
__DIR__ . '/rector.php',
|
|
]);
|
|
|
|
$overrides = [
|
|
// 'declare_strict_types' => true,
|
|
// 'void_return' => true,
|
|
];
|
|
|
|
$options = [
|
|
'finder' => $finder,
|
|
'cacheFile' => 'build/.php-cs-fixer.cache',
|
|
];
|
|
|
|
return Factory::create(new CodeIgniter4(), $overrides, $options)->forProjects();
|