dimtrovich /
cart
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of dimtrovich/cart". |
||
| 5 | * |
||
| 6 | * (c) 2024 Dimitri Sitchet Tomkeu <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view |
||
| 9 | * the LICENSE file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | use BlitzPHP\CodingStandard\Blitz; |
||
| 13 | use Nexus\CsConfig\Factory; |
||
| 14 | use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer; |
||
| 15 | use Nexus\CsConfig\FixerGenerator; |
||
| 16 | use PhpCsFixer\Finder; |
||
| 17 | |||
| 18 | $finder = Finder::create() |
||
| 19 | ->files() |
||
| 20 | ->in([ |
||
| 21 | __DIR__ . '/src', |
||
| 22 | __DIR__ . '/spec', |
||
| 23 | ]) |
||
| 24 | ->notName('#Foobar.php$#') |
||
| 25 | ->append([ |
||
| 26 | __FILE__, |
||
| 27 | ]); |
||
| 28 | |||
| 29 | $overrides = [ |
||
| 30 | 'static_lambda' => false, |
||
| 31 | ]; |
||
| 32 | |||
| 33 | $options = [ |
||
| 34 | 'cacheFile' => 'build/.php-cs-fixer.cache', |
||
| 35 | 'finder' => $finder, |
||
| 36 | 'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), |
||
| 37 | 'customRules' => [ |
||
| 38 | NoCodeSeparatorCommentFixer::name() => true, |
||
| 39 | ], |
||
| 40 | ]; |
||
| 41 | |||
| 42 | return Factory::create(new Blitz(), $overrides, $options)->forLibrary( |
||
| 43 | 'dimtrovich/cart"', |
||
| 44 | 'Dimitri Sitchet Tomkeu', |
||
| 45 | '[email protected]', |
||
| 46 | date('Y') |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 47 | ); |
||
| 48 |