|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * This file is part of the CleverAge/ProcessBundle package. |
| 5 | + * |
| 6 | + * Copyright (c) 2017-2023 Clever-Age |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +if (!file_exists(__DIR__.'/src')) { |
| 13 | + exit(0); |
| 14 | +} |
| 15 | + |
| 16 | +$fileHeaderComment = <<<'EOF' |
| 17 | +This file is part of the CleverAge/ProcessBundle package. |
| 18 | +
|
| 19 | +Copyright (c) 2017-2023 Clever-Age |
| 20 | +
|
| 21 | +For the full copyright and license information, please view the LICENSE |
| 22 | +file that was distributed with this source code. |
| 23 | +EOF; |
| 24 | + |
| 25 | +return (new PhpCsFixer\Config()) |
| 26 | + ->setRules([ |
| 27 | + '@PHP71Migration' => true, |
| 28 | + '@PHPUnit75Migration:risky' => true, |
| 29 | + '@Symfony' => true, |
| 30 | + '@Symfony:risky' => true, |
| 31 | + 'protected_to_private' => false, |
| 32 | + 'native_constant_invocation' => ['strict' => false], |
| 33 | + 'header_comment' => ['header' => $fileHeaderComment], |
| 34 | + 'modernize_strpos' => true, |
| 35 | + 'get_class_to_class_keyword' => true, |
| 36 | + ]) |
| 37 | + ->setRiskyAllowed(true) |
| 38 | + ->setFinder( |
| 39 | + (new PhpCsFixer\Finder()) |
| 40 | + ->in(__DIR__.'/src') |
| 41 | + ->append([__FILE__]) |
| 42 | + ) |
| 43 | + ->setCacheFile('.php-cs-fixer.cache') |
| 44 | +; |
0 commit comments