@@ -3,11 +3,11 @@ |
||
| 3 | 3 | namespace MovingImage\Client\VMPro\ApiClient; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Message\Response; |
| 6 | -use MovingImage\Client\VMPro\ApiClient; |
|
| 7 | -use MovingImage\Client\VMPro\Interfaces\ApiClientInterface; |
|
| 8 | 6 | use GuzzleHttp\Message\ResponseInterface; |
| 9 | -use MovingImage\Client\VMPro\Exception; |
|
| 10 | 7 | use GuzzleHttp\Stream\Stream; |
| 8 | +use MovingImage\Client\VMPro\ApiClient; |
|
| 9 | +use MovingImage\Client\VMPro\Exception; |
|
| 10 | +use MovingImage\Client\VMPro\Interfaces\ApiClientInterface; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Class Guzzle5ApiClient. |
@@ -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 | */ |
@@ -45,12 +45,12 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function sortChannels(ArrayCollection $channels) |
| 47 | 47 | { |
| 48 | - $channels->map(function ($channel) { |
|
| 48 | + $channels->map(function($channel) { |
|
| 49 | 49 | $channel->setChildren($this->sortChannels($channel->getChildren())); |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | 52 | $iterator = $channels->getIterator(); |
| 53 | - $iterator->uasort(function ($a, $b) { |
|
| 53 | + $iterator->uasort(function($a, $b) { |
|
| 54 | 54 | return $a->getName() > $b->getName(); |
| 55 | 55 | }); |
| 56 | 56 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | ); |
| 188 | 188 | |
| 189 | 189 | if ($this->cacheTtl) { |
| 190 | - $url.= sprintf('%s&token_lifetime_in_seconds=%s', $url, $this->cacheTtl); |
|
| 190 | + $url .= sprintf('%s&token_lifetime_in_seconds=%s', $url, $this->cacheTtl); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | $response = $this->makeRequest('GET', $url, [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]); |