| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function validateAssertion(callable $assertion, $data, array $context = []): ValidationResult |
||
| 40 | { |
||
| 41 | return IsAsAsserted::withAssertionAndErrorFormatter( |
||
| 42 | $assertion, |
||
| 43 | is_callable($this->errorFormatter) ? |
||
| 44 | $this->errorFormatter : |
||
| 45 | function ($data) { |
||
| 46 | return [static::MESSAGE]; |
||
| 47 | } |
||
| 48 | )->validate($data, $context); |
||
| 49 | } |
||
| 51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.