| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function hasSolution(array $contextual_options=[]) |
||
|
|
|||
| 42 | { |
||
| 43 | // if minimum is null, the rule is equivalent to true |
||
| 44 | if (is_numeric( $this->maximum )) { |
||
| 45 | if (is_nan( $this->maximum )) |
||
| 46 | return false; |
||
| 47 | |||
| 48 | if (is_infinite( $this->maximum ) && $this->maximum < 0) |
||
| 49 | return false; |
||
| 50 | } |
||
| 51 | |||
| 52 | return true; |
||
| 53 | } |
||
| 79 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.