| Conditions | 5 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | 102 | private function validateDValues(array $dValues) |
|
| 48 | { |
||
| 49 | 102 | if ($this->length == 0) { |
|
| 50 | 3 | throw new ValidationException('$dValues should be not empty'); |
|
| 51 | } |
||
| 52 | |||
| 53 | 102 | for ($i = 0; $i < $this->length; $i++) { |
|
| 54 | 102 | if (!isset($dValues[$i]) || !is_numeric($dValues[$i])) { |
|
| 55 | 3 | throw new ValidationException('$dValues is not a simple array list'); |
|
| 56 | } |
||
| 69 |