umbrellio /
laravel-pg-extensions
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer; |
||
| 6 | use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer; |
||
| 7 | use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer; |
||
| 8 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
||
|
0 ignored issues
–
show
|
|||
| 9 | |||
| 10 | return static function (ContainerConfigurator $containerConfigurator): void { |
||
| 11 | $containerConfigurator->import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php'); |
||
| 12 | |||
| 13 | $services = $containerConfigurator->services(); |
||
| 14 | |||
| 15 | $services->set(PhpUnitTestAnnotationFixer::class) |
||
| 16 | ->call('configure', [[ |
||
| 17 | 'style' => 'annotation', |
||
| 18 | ]]); |
||
| 19 | |||
| 20 | $services->set(DeclareStrictTypesFixer::class); |
||
| 21 | |||
| 22 | $services->set(BinaryOperatorSpacesFixer::class) |
||
| 23 | ->call('configure', [[ |
||
| 24 | 'default' => 'single_space', |
||
| 25 | ]]); |
||
| 26 | |||
| 27 | $parameters = $containerConfigurator->parameters(); |
||
| 28 | |||
| 29 | $parameters->set('cache_directory', '.ecs_cache'); |
||
| 30 | $parameters->set('skip', [ |
||
| 31 | 'PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer' => null, |
||
| 32 | ]); |
||
| 33 | |||
| 34 | $parameters->set('exclude_files', ['vendor/*', 'database/*']); |
||
| 35 | }; |
||
| 36 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths