@@ -58,7 +58,9 @@ discard block |
||
58 | 58 | public function __get(string $service): ?ApiService |
59 | 59 | { |
60 | 60 | $obj = ServiceFactory::inst($this, $service); |
61 | - if (!$obj) throw new BadMethodException("Service for `{$service}` does not exist"); |
|
61 | + if (!$obj) { |
|
62 | + throw new BadMethodException("Service for `{$service}` does not exist"); |
|
63 | + } |
|
62 | 64 | |
63 | 65 | return $obj; |
64 | 66 | } |
@@ -143,7 +145,9 @@ discard block |
||
143 | 145 | */ |
144 | 146 | public function getHost(): ?string |
145 | 147 | { |
146 | - if (!$this->getActiveSite(true)) return null; |
|
148 | + if (!$this->getActiveSite(true)) { |
|
149 | + return null; |
|
150 | + } |
|
147 | 151 | return $this->_host; |
148 | 152 | } |
149 | 153 | |
@@ -152,7 +156,9 @@ discard block |
||
152 | 156 | */ |
153 | 157 | public function getSiteKey(): ?string |
154 | 158 | { |
155 | - if (!$this->getActiveSite(true)) return null; |
|
159 | + if (!$this->getActiveSite(true)) { |
|
160 | + return null; |
|
161 | + } |
|
156 | 162 | return $this->_site_key; |
157 | 163 | } |
158 | 164 |