@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param string $uri |
21 | 21 | * @param array $options |
22 | 22 | * |
23 | - * @return \GuzzleHttp\Message\ResponseInterface |
|
23 | + * @return \Psr\Http\Message\ResponseInterface |
|
24 | 24 | */ |
25 | 25 | protected function _doRequest($method, $uri, $options) |
26 | 26 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function __invoke(callable $handler) |
48 | 48 | { |
49 | - return function ( |
|
49 | + return function( |
|
50 | 50 | RequestInterface $request, |
51 | 51 | array $options |
52 | 52 | ) use ($handler) { |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * @param string $method |
202 | 202 | * @param string $uri |
203 | 203 | * @param array $options |
204 | - * @param mixed $response |
|
204 | + * @param ResponseInterface $response |
|
205 | 205 | * |
206 | 206 | * @return bool |
207 | 207 | */ |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * Serializes the provided response to a string, suitable for caching. |
218 | 218 | * The type of the $response argument varies depending on the guzzle version. |
219 | 219 | * |
220 | - * @param mixed $response |
|
220 | + * @param ResponseInterface $response |
|
221 | 221 | * |
222 | 222 | * @return string |
223 | 223 | */ |
@@ -398,7 +398,7 @@ |
||
398 | 398 | public function getStills() |
399 | 399 | { |
400 | 400 | //sorting preview's images from smallest to biggest |
401 | - usort($this->stills, function (array $item1, array $item2) { |
|
401 | + usort($this->stills, function(array $item1, array $item2) { |
|
402 | 402 | if (isset($item1['dimension']['height'], $item2['dimension']['height']) && $item1['dimension']['height'] != $item2['dimension']['height']) { |
403 | 403 | return ($item1['dimension']['height'] > $item2['dimension']['height']) ? 1 : -1; |
404 | 404 | } |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function sortChannels(ArrayCollection $channels) |
57 | 57 | { |
58 | - $channels->map(function ($channel) { |
|
58 | + $channels->map(function($channel) { |
|
59 | 59 | $channel->setChildren($this->sortChannels($channel->getChildren())); |
60 | 60 | }); |
61 | 61 | |
62 | 62 | $iterator = $channels->getIterator(); |
63 | - $iterator->uasort(function ($a, $b) { |
|
63 | + $iterator->uasort(function($a, $b) { |
|
64 | 64 | return $a->getName() > $b->getName(); |
65 | 65 | }); |
66 | 66 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | [self::OPT_VIDEO_MANAGER_ID => $videoManagerId] |
267 | 267 | ); |
268 | 268 | |
269 | - return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<' . Keyword::class . '>'); |
|
269 | + return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Keyword::class.'>'); |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | /** |