| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | 5 | private function checkValue(array &$value) |
|
| 60 | { |
||
| 61 | 5 | if (count($value) < 2) { |
|
| 62 | 1 | throw new InvalidArgumentException(__METHOD__.': Parameters array must contain at least two elements with this form: [\':name\', \'value\']'); |
|
| 63 | } |
||
| 64 | |||
| 65 | 4 | if (strpos($value[0], ':') !== 0) { |
|
| 66 | 1 | throw new InvalidArgumentException(__METHOD__.': Parameter name will be in the form :name'); |
|
| 67 | } |
||
| 68 | 3 | } |
|
| 69 | } |
||
| 70 |