Completed
Pull Request — master (#2)
by
unknown
04:17
created
src/Connection.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -473,8 +473,9 @@
 block discarded – undo
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, [
Please login to merge, or discard this patch.