| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function __construct(FactoryInterface $factory) |
||
| 33 | { |
||
| 34 | $this->factory = $factory; |
||
| 35 | |||
| 36 | $this->faker = \Faker\Factory::create(); |
||
| 37 | $this->optionsResolver = |
||
| 38 | (new OptionsResolver()) |
||
| 39 | ->setDefault('name', function (Options $options) { |
||
|
|
|||
| 40 | return StringInflector::nameToCode($this->faker->words(3, true)); |
||
| 41 | }) |
||
| 42 | ->setAllowedTypes('name', 'string') |
||
| 43 | |||
| 44 | ->setDefault('body', function (Options $options) { |
||
| 45 | return $this->faker->sentence(); |
||
| 46 | }) |
||
| 47 | ->setAllowedTypes('body', 'string') |
||
| 48 | ; |
||
| 49 | } |
||
| 50 | |||
| 66 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.