| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function resolve(array $data) |
||
| 14 | { |
||
| 15 | return (new OptionsResolver()) |
||
| 16 | ->setDefined('id') |
||
| 17 | ->setAllowedTypes('id', 'string') |
||
| 18 | ->setRequired('name') |
||
| 19 | ->setAllowedTypes('name', 'string') |
||
| 20 | ->setDefined('filters') |
||
| 21 | ->setAllowedTypes('filters', 'array') |
||
| 22 | ->setNormalizer('filters', function (Options $options, array $values) { |
||
| 23 | return $this->normalizeFilters($options, $values); |
||
| 24 | }) |
||
| 25 | ->resolve($data); |
||
| 26 | } |
||
| 27 | |||
| 41 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.