@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $stack = HandlerStack::create(); |
36 | 36 | |
37 | 37 | $stack->push(Middleware::mapRequest( |
38 | - function (RequestInterface $request) use ($apikey) { |
|
38 | + function(RequestInterface $request) use ($apikey) { |
|
39 | 39 | return $request->withUri( |
40 | 40 | Uri::withQueryValue( |
41 | 41 | $request->getUri(), 'apikey', $apikey |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | ), 'apikey'); |
46 | 46 | |
47 | 47 | $stack->push(Middleware::mapResponse( |
48 | - function (ResponseInterface $response) { |
|
48 | + function(ResponseInterface $response) { |
|
49 | 49 | $body = json_decode((string)$response->getBody(), true); |
50 | 50 | |
51 | - if (! $body['success']) { |
|
51 | + if ( ! $body['success']) { |
|
52 | 52 | throw new ElasticEmailException($body['error']); |
53 | 53 | } |
54 | 54 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | protected function transform(array $params, $muiltipartOption) |
35 | 35 | { |
36 | - if (! $muiltipartOption) { |
|
36 | + if ( ! $muiltipartOption) { |
|
37 | 37 | return ['form_params' => $params]; |
38 | 38 | } |
39 | 39 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function getBody() |
45 | 45 | { |
46 | 46 | if (null === $this->body) { |
47 | - $this->body = json_decode((string) $this->response->getBody()); |
|
47 | + $this->body = json_decode((string)$this->response->getBody()); |
|
48 | 48 | } |
49 | 49 | return $this->body; |
50 | 50 | } |