@@ -3,6 +3,6 @@ |
||
| 3 | 3 | * @author Rizart Dokollari <[email protected]> |
| 4 | 4 | * @since 12/24/17 |
| 5 | 5 | */ |
| 6 | -function dd($variable){ |
|
| 7 | - var_dump($variable);exit; |
|
| 6 | +function dd($variable) { |
|
| 7 | + var_dump($variable); exit; |
|
| 8 | 8 | } |
| 9 | 9 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function getBody() |
| 26 | 26 | { |
| 27 | - return json_decode((string)$this->response->getBody()); |
|
| 27 | + return json_decode((string) $this->response->getBody()); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function wasSuccessful() |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | protected function transform(array $params, $muiltipartOption) |
| 37 | 37 | { |
| 38 | - if ( ! $muiltipartOption) { |
|
| 38 | + if (!$muiltipartOption) { |
|
| 39 | 39 | return ['form_params' => $params]; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | $stack->push( |
| 38 | 38 | Middleware::mapRequest( |
| 39 | - function (RequestInterface $request) use ($apikey) { |
|
| 39 | + function(RequestInterface $request) use ($apikey) { |
|
| 40 | 40 | return $request->withUri( |
| 41 | 41 | Uri::withQueryValue( |
| 42 | 42 | $request->getUri(), 'apikey', $apikey |
@@ -47,11 +47,11 @@ discard block |
||
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | $stack->push(Middleware::mapResponse( |
| 50 | - function (ResponseInterface $response) { |
|
| 50 | + function(ResponseInterface $response) { |
|
| 51 | 51 | |
| 52 | - $body = json_decode((string)$response->getBody(), true); |
|
| 52 | + $body = json_decode((string) $response->getBody(), true); |
|
| 53 | 53 | |
| 54 | - if ( ! $body['success']) { |
|
| 54 | + if (!$body['success']) { |
|
| 55 | 55 | throw new ElasticEmailException($body['error']); |
| 56 | 56 | } |
| 57 | 57 | |