@@ -15,7 +15,6 @@ |
||
15 | 15 | use Psr\Http\Message\ResponseInterface; |
16 | 16 | use Http\Client\Common\Plugin\AuthenticationPlugin; |
17 | 17 | use Http\Message\Authentication\QueryParam; |
18 | - |
|
19 | 18 | use Tristanbes\MyPoseoBundle\Exception\NotEnoughCreditsException; |
20 | 19 | |
21 | 20 | /** |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * @param string $endpointUrl |
159 | 159 | * @param array $queryString |
160 | - * @param null $cacheKey |
|
161 | - * @param null $ttl |
|
160 | + * @param string $cacheKey |
|
161 | + * @param integer|null $ttl |
|
162 | 162 | * |
163 | 163 | * @return ResponseInterface |
164 | 164 | */ |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param $uri |
|
200 | + * @param string $uri |
|
201 | 201 | * |
202 | 202 | * @return string |
203 | 203 | */ |
@@ -8,17 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace Tristanbes\MyPoseoBundle\Api; |
10 | 10 | |
11 | -use Http\Client\Common\PluginClient; |
|
12 | -use Http\Client\HttpClient; |
|
13 | -use Doctrine\Common\Cache\Cache; |
|
14 | -use Http\Discovery\MessageFactoryDiscovery; |
|
15 | -use Http\Message\Authentication\QueryParam; |
|
16 | -use Http\Client\Common\Plugin\AuthenticationPlugin; |
|
17 | - |
|
18 | -use Psr\Http\Message\RequestInterface; |
|
19 | -use Psr\Http\Message\ResponseInterface; |
|
20 | 11 | use Tristanbes\MyPoseoBundle\Connection\RestClient; |
21 | -use Tristanbes\MyPoseoBundle\Exception\NotEnoughCreditsException; |
|
22 | 12 | |
23 | 13 | /** |
24 | 14 | * @see http://fr.myposeo.com/nos-api/api-search/ |