Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
14 | 4 | public function generateForProperty(FieldMetadata $field, Constraint $constraint, Generator $faker) |
|
15 | { |
||
16 | /* |
||
17 | * @var \Symfony\Component\Validator\Constraints\Isbn $constraint |
||
18 | */ |
||
19 | |||
20 | /** |
||
21 | * @var Length |
||
22 | */ |
||
23 | 4 | if ($length = $field->annotations->findOneBy(Length::class)) { |
|
24 | 2 | $max = $length->max ?: self::DEFAULT_LENGTH; |
|
25 | 2 | if ($max >= 13) { |
|
26 | 2 | return $faker->isbn13; |
|
27 | } |
||
28 | } |
||
29 | |||
30 | 2 | return $faker->isbn10; |
|
31 | } |
||
33 |
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