@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * Setter for request headers. |
59 | 59 | * |
60 | - * @param array $headers |
|
60 | + * @param array $header |
|
61 | 61 | * @return Client |
62 | 62 | */ |
63 | 63 | public function addHeader(array $header) |
@@ -122,7 +122,6 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * Setter for optional request sort. |
124 | 124 | * |
125 | - * @param string|null $locale |
|
126 | 125 | * @return Client |
127 | 126 | */ |
128 | 127 | public function setSort($sort) |
@@ -136,7 +135,7 @@ discard block |
||
136 | 135 | /** |
137 | 136 | * Setter for mandatory request max results limiter. |
138 | 137 | * |
139 | - * @param integer|null $maxResults |
|
138 | + * @param integer $maxResults |
|
140 | 139 | * @return Client |
141 | 140 | */ |
142 | 141 | public function setMaxresults($maxResults = 100) |
@@ -199,7 +198,7 @@ discard block |
||
199 | 198 | /** |
200 | 199 | * Get http response body, cast to json and decode. |
201 | 200 | * |
202 | - * @param Response object $response |
|
201 | + * @param Response Response $response |
|
203 | 202 | * @return array |
204 | 203 | */ |
205 | 204 | protected function getBody(Response $response) |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function addHeader(array $header) |
64 | 64 | { |
65 | - $this->options[ 'headers' ][] = $header; |
|
65 | + $this->options[ 'headers' ][ ] = $header; |
|
66 | 66 | return $this; |
67 | 67 | } |
68 | 68 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $this->httpClient = $httpClient ?: new HttpClient; |
16 | 16 | } |
17 | 17 | |
18 | - public function listMarketcatalogue($filter = [], $marketProjection = [], $sort = null, $maxResults = 100, $locale = null) |
|
18 | + public function listMarketcatalogue($filter = [ ], $marketProjection = [ ], $sort = null, $maxResults = 100, $locale = null) |
|
19 | 19 | { |
20 | 20 | return $this->httpClient |
21 | 21 | ->setMethod('post') |