@@ -10,7 +10,7 @@ discard block  | 
                                                    ||
| 10 | 10 | public function diceFromUrlString($urlString)  | 
                                                        
| 11 | 11 |      { | 
                                                        
| 12 | 12 |          $parts = explode("/", $urlString); | 
                                                        
| 13 | -        $parts = array_filter($parts, function($part) {return $part !== "";}); | 
                                                        |
| 13 | +        $parts = array_filter($parts, function($part) {return $part !== ""; }); | 
                                                        |
| 14 | 14 | $diceSets = array_map([$this, 'getDiceForPart'], $parts);  | 
                                                        
| 15 | 15 | return $this->flattenDiceSets($diceSets);  | 
                                                        
| 16 | 16 | }  | 
                                                        
@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 66 | 66 | $data = [];  | 
                                                        
| 67 | 67 |          $valid = preg_match("/(?P<count>[0-9]+)?d(?P<size>[0-9]+)/i", $part, $data); | 
                                                        
| 68 | 68 |          if (!$valid) { | 
                                                        
| 69 | -            throw new UncreatableDiceException("Problem creating dice from incorrectly formated data: " + $part); | 
                                                        |
| 69 | +            throw new UncreatableDiceException("Problem creating dice from incorrectly formated data: " +$part); | 
                                                        |
| 70 | 70 | }  | 
                                                        
| 71 | 71 |          if (!$data["count"]) { | 
                                                        
| 72 | 72 | $data["count"] = 1;  |