@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | * Makes API Call to YourMembership |
34 | 34 | * @method makeCall |
35 | 35 | * @author PA |
36 | - * @author AB http://github.com/chefboyarsky |
|
36 | + * @author AB http://github.com/chefboyarsky |
|
37 | 37 | * @date 2017-01-10 |
38 | 38 | * @param string $method Your Membership API Method |
39 | 39 | * @param array $arguments Your Membership API Call Arguments |
40 | 40 | * @return Response |
41 | - * @throws YourMembershipResponseException If the response from the API has an error |
|
41 | + * @throws YourMembershipResponseException If the response from the API has an error |
|
42 | 42 | */ |
43 | 43 | public function makeCall(string $method, array $arguments = []) |
44 | 44 | { |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | |
49 | 49 | $response = new Response($method, $this->client->send($request)); |
50 | 50 | |
51 | - if($response->hasError()) |
|
52 | - { |
|
53 | - throw new YourMembershipResponseException($response->getError(), $response->getErrorCode(), $method); |
|
54 | - } |
|
51 | + if($response->hasError()) |
|
52 | + { |
|
53 | + throw new YourMembershipResponseException($response->getError(), $response->getErrorCode(), $method); |
|
54 | + } |
|
55 | 55 | |
56 | 56 | return $response; |
57 | 57 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | $response = new Response($method, $this->client->send($request)); |
50 | 50 | |
51 | - if($response->hasError()) |
|
51 | + if ($response->hasError()) |
|
52 | 52 | { |
53 | 53 | throw new YourMembershipResponseException($response->getError(), $response->getErrorCode(), $method); |
54 | 54 | } |
@@ -48,8 +48,7 @@ |
||
48 | 48 | |
49 | 49 | $response = new Response($method, $this->client->send($request)); |
50 | 50 | |
51 | - if($response->hasError()) |
|
52 | - { |
|
51 | + if($response->hasError()) { |
|
53 | 52 | throw new YourMembershipResponseException($response->getError(), $response->getErrorCode(), $method); |
54 | 53 | } |
55 | 54 |