| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 37 | public function output($value) |
|
| 35 | { |
||
| 36 | 37 | if ($value < $this->minValue || $value > $this->maxValue) |
|
| 37 | { |
||
| 38 | 4 | throw new InvalidArgumentException('Value ' . $value . ' is out of bounds (' . $this->minValue . '..' . $this->maxValue . ')'); |
|
| 39 | } |
||
| 40 | |||
| 41 | 33 | return $this->outputValidValue($value); |
|
| 42 | } |
||
| 43 | |||
| 51 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.