| Conditions | 5 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 21 | private function getDiceForPart($part) | ||
| 22 |     { | ||
| 23 | $newDice = []; | ||
| 24 | $data = $this->parseDiceString($part); | ||
| 25 |         if ($data) { | ||
| 26 |             if ((strlen($data["size"]) > 4) || ($data["size"] > 9000)) { | ||
| 27 |                 throw new UncreatableDiceException("Only dice with a power level less than 9000 can be created."); | ||
| 28 | } | ||
| 29 |             for ($i = 0; $i < $data["count"]; $i++) { | ||
| 30 | $newDice[] = $this->newDiceOfSize($data["size"]); | ||
| 31 | } | ||
| 32 | } | ||
| 33 | return $newDice; | ||
| 34 | } | ||
| 35 | |||
| 79 |