@@ -20,9 +20,9 @@ |
||
20 | 20 | |
21 | 21 | public function byId(StringLiteral $themeId) |
22 | 22 | { |
23 | - if (!array_key_exists((string) $themeId, $this->themes)) { |
|
24 | - throw new \Exception("Unknown place theme id: " . $themeId); |
|
23 | + if (!array_key_exists((string)$themeId, $this->themes)) { |
|
24 | + throw new \Exception("Unknown place theme id: ".$themeId); |
|
25 | 25 | } |
26 | - return $this->themes[(string) $themeId]; |
|
26 | + return $this->themes[(string)$themeId]; |
|
27 | 27 | } |
28 | 28 | } |
@@ -38,9 +38,9 @@ |
||
38 | 38 | |
39 | 39 | public function byId(StringLiteral $typeId) |
40 | 40 | { |
41 | - if (!array_key_exists((string) $typeId, $this->types)) { |
|
42 | - throw new \Exception("Unknown place type id: " . $typeId); |
|
41 | + if (!array_key_exists((string)$typeId, $this->types)) { |
|
42 | + throw new \Exception("Unknown place type id: ".$typeId); |
|
43 | 43 | } |
44 | - return $this->types[(string) $typeId]; |
|
44 | + return $this->types[(string)$typeId]; |
|
45 | 45 | } |
46 | 46 | } |