@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | public function __construct() |
| 30 | 30 | { |
| 31 | 31 | $this->method = 'GET'; |
| 32 | - $this->headers = []; |
|
| 32 | + $this->headers = [ ]; |
|
| 33 | 33 | $this->body = null; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function addHeader($header, $value) |
| 81 | 81 | { |
| 82 | - $this->headers[$header] = $value; |
|
| 82 | + $this->headers[ $header ] = $value; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function __construct($message, $code) |
| 16 | 16 | { |
| 17 | - $this->body = ['message' => $message]; |
|
| 17 | + $this->body = [ 'message' => $message ]; |
|
| 18 | 18 | $this->code = $code; |
| 19 | 19 | } |
| 20 | 20 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $fields = implode(' ', $fields); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - $body[FieldsInterface::NAME] = $fields; |
|
| 55 | + $body[ FieldsInterface::NAME ] = $fields; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | return $body; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | private function handleResponse() |
| 60 | 60 | { |
| 61 | 61 | if ($this->getBody()->getSize() > 0) { |
| 62 | - $body = (string)$this->getBody(); |
|
| 62 | + $body = (string) $this->getBody(); |
|
| 63 | 63 | $data = $this->jsonDecoder->decode($body); |
| 64 | 64 | |
| 65 | 65 | if (isset($data->results, $data->totalCount)) { |