@@ -40,9 +40,9 @@ |
||
40 | 40 | |
41 | 41 | public function byId(StringLiteral $typeId): EventType |
42 | 42 | { |
43 | - if (!array_key_exists((string) $typeId, $this->types)) { |
|
44 | - throw new Exception("Unknown place type id: " . $typeId); |
|
43 | + if (!array_key_exists((string)$typeId, $this->types)) { |
|
44 | + throw new Exception("Unknown place type id: ".$typeId); |
|
45 | 45 | } |
46 | - return $this->types[(string) $typeId]; |
|
46 | + return $this->types[(string)$typeId]; |
|
47 | 47 | } |
48 | 48 | } |
@@ -42,9 +42,9 @@ |
||
42 | 42 | |
43 | 43 | public function byId(StringLiteral $typeId): EventType |
44 | 44 | { |
45 | - if (!array_key_exists((string) $typeId, $this->types)) { |
|
46 | - throw new Exception("Unknown event type id: " . $typeId); |
|
45 | + if (!array_key_exists((string)$typeId, $this->types)) { |
|
46 | + throw new Exception("Unknown event type id: ".$typeId); |
|
47 | 47 | } |
48 | - return $this->types[(string) $typeId]; |
|
48 | + return $this->types[(string)$typeId]; |
|
49 | 49 | } |
50 | 50 | } |