| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function validateLength($length) |
||
| 15 | { |
||
| 16 | if (!is_int($length)) { |
||
|
|
|||
| 17 | throw new \InvalidArgumentException('getPseudoRandomString() expects an integer for the string length'); |
||
| 18 | } |
||
| 19 | |||
| 20 | if ($length < 1) { |
||
| 21 | throw new \InvalidArgumentException('getPseudoRandomString() expects a length greater than 1'); |
||
| 22 | } |
||
| 38 |