Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | protected function configureBarcodeOptions(OptionsResolver $resolver, int $chanceOfRandomBarcode = 90): void |
||
|
|||
17 | { |
||
18 | $resolver |
||
19 | ->setDefault('barcode', static function (): string { |
||
20 | static $faker; |
||
21 | |||
22 | if (null === $faker) { |
||
23 | $faker = \Faker\Factory::create(); |
||
24 | } |
||
25 | |||
26 | return $faker->ean13; |
||
27 | }) |
||
28 | ->setAllowedTypes('barcode', ['null', 'string']) |
||
29 | ; |
||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.