Conditions | 3 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
14 | 3 | public function generateForProperty(FieldMetadata $field, Constraint $constraint, Generator $faker) |
|
15 | { |
||
16 | /** |
||
17 | * @var \Symfony\Component\Validator\Constraints\Image |
||
18 | */ |
||
19 | 3 | $width = $constraint->maxWidth ?: self::DEFAULT_WIDTH; |
|
20 | 3 | $height = $constraint->maxHeight ?: self::DEFAULT_HEIGHT; |
|
21 | |||
22 | 3 | return new \SplFileObject($faker->image(null, $width, $height)); |
|
23 | } |
||
25 |
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