@@ -28,11 +28,13 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __construct(?string $apiMethodName, ?string $authToken) |
| 30 | 30 | { |
| 31 | - if (empty($apiMethodName)) |
|
| 32 | - throw new EmptyApiMethodException(); |
|
| 31 | + if (empty($apiMethodName)) { |
|
| 32 | + throw new EmptyApiMethodException(); |
|
| 33 | + } |
|
| 33 | 34 | |
| 34 | - if (empty($authToken)) |
|
| 35 | - throw new EmptyTokenException(); |
|
| 35 | + if (empty($authToken)) { |
|
| 36 | + throw new EmptyTokenException(); |
|
| 37 | + } |
|
| 36 | 38 | |
| 37 | 39 | $this->apiMethodName = $apiMethodName; |
| 38 | 40 | $this->authToken = $authToken; |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | class EmptyTokenException extends ErrorException |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | - public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, $previous = null) |
|
| 12 | - { |
|
| 13 | - parent::__construct('Dalli Service auth token is empty.', $code, $severity, $filename, $lineno, $previous); |
|
| 14 | - } |
|
| 11 | + public function __construct($message = "", $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, $previous = null) |
|
| 12 | + { |
|
| 13 | + parent::__construct('Dalli Service auth token is empty.', $code, $severity, $filename, $lineno, $previous); |
|
| 14 | + } |
|
| 15 | 15 | } |