@@ -473,8 +473,9 @@ |
||
473 | 473 | */ |
474 | 474 | protected function checkResponse($response, $url, $options) |
475 | 475 | { |
476 | - if(!$this->errorChecker instanceof \Closure) |
|
477 | - throw new InvalidConfigException('The errorChecker should be set first'); |
|
476 | + if(!$this->errorChecker instanceof \Closure) { |
|
477 | + throw new InvalidConfigException('The errorChecker should be set first'); |
|
478 | + } |
|
478 | 479 | $error = call_user_func($this->errorChecker, $response); |
479 | 480 | if ($error) { |
480 | 481 | throw new ErrorResponseException($error, [ |