@@ -20,11 +20,13 @@ |
||
20 | 20 | |
21 | 21 | public function __construct(?string $apiMethodName, ?string $authToken) |
22 | 22 | { |
23 | - if (empty($apiMethodName)) |
|
24 | - throw new ErrorException('Api method name is empty.'); |
|
23 | + if (empty($apiMethodName)) { |
|
24 | + throw new ErrorException('Api method name is empty.'); |
|
25 | + } |
|
25 | 26 | |
26 | - if (empty($authToken)) |
|
27 | - throw new ErrorException('Auth token is empty.'); |
|
27 | + if (empty($authToken)) { |
|
28 | + throw new ErrorException('Auth token is empty.'); |
|
29 | + } |
|
28 | 30 | |
29 | 31 | $this->apiMethodName = $apiMethodName; |
30 | 32 | $this->authToken = $authToken; |