| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public static function validate(array $options, $providerName): void |
||
| 34 | { |
||
| 35 | $resolver = new OptionsResolver(); |
||
| 36 | static::configureOptionResolver($resolver); |
||
| 37 | |||
| 38 | try { |
||
| 39 | $resolver->resolve($options); |
||
| 40 | } catch (\Exception $e) { |
||
| 41 | $message = sprintf( |
||
| 42 | 'Error while configure provider "%s". Verify your configuration. %s', |
||
| 43 | $providerName, |
||
| 44 | $e->getMessage() |
||
| 45 | ); |
||
| 46 | |||
| 47 | throw new InvalidConfigurationException($message, $e->getCode(), $e); |
||
| 48 | } |
||
| 59 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.