Conditions | 4 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | private function doRandomization() |
||
46 | { |
||
47 | $length = (!empty($this->length)) ? $this->length : Rando::integer(['min'=>$this->minLength, 'max'=>$this->maxLength]); |
||
48 | $string = ''; |
||
49 | while ($length > 0) { |
||
50 | if (empty($this->pool)) { |
||
51 | $string .= Rando::character(); |
||
52 | } else { |
||
53 | $string .= Rando::character(['pool'=>$this->pool]); |
||
54 | } |
||
55 | |||
56 | $length--; |
||
57 | } |
||
58 | |||
59 | return $string; |
||
60 | } |
||
61 | |||
67 |