| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 1 | Features | 4 |
| 1 | <?php |
||
| 42 | public function run() |
||
| 43 | { |
||
| 44 | $random = $this->generator->generateInt(1, $this->storage->getUpperLimit()); |
||
| 45 | foreach ($this->storage->getAll() as $member) { |
||
| 46 | $range = $this->storage->getRange($member); |
||
| 47 | if ($random >= $range[0] && $random <= $range[1]) { |
||
| 48 | return $member; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | throw new SolverException(); |
||
| 53 | } |
||
| 54 | |||
| 74 |