@@ -203,7 +203,7 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param $e |
|
206 | + * @param RequestException $e |
|
207 | 207 | * @return string |
208 | 208 | */ |
209 | 209 | public function getResponseStatusCodeFromException($e) |
@@ -6,21 +6,19 @@ |
||
6 | 6 | namespace Padosoft\HTTPClient; |
7 | 7 | |
8 | 8 | |
9 | -use Padosoft\HTTPClient\Response; |
|
10 | -use Psr\Log\LoggerInterface; |
|
11 | -use Psr\Log\LogLevel; |
|
12 | 9 | use GuzzleHttp\Client; |
13 | -use GuzzleHttp\Handler\MockHandler; |
|
14 | -use GuzzleHttp\Psr7\Request; |
|
15 | -use GuzzleHttp\HandlerStack; |
|
16 | 10 | use GuzzleHttp\Exception; |
11 | +use GuzzleHttp\Exception\BadResponseException; |
|
17 | 12 | use GuzzleHttp\Exception\ClientException; |
13 | +use GuzzleHttp\Exception\ConnectException; |
|
18 | 14 | use GuzzleHttp\Exception\RequestException; |
19 | -use GuzzleHttp\Exception\BadResponseException; |
|
20 | 15 | use GuzzleHttp\Exception\ServerException; |
21 | 16 | use GuzzleHttp\Exception\TooManyRedirectsException; |
22 | -use GuzzleHttp\Exception\ConnectException; |
|
23 | 17 | use GuzzleHttp\Exception\TransferException; |
18 | +use GuzzleHttp\Psr7\Request; |
|
19 | +use Padosoft\HTTPClient\Response; |
|
20 | +use Psr\Log\LogLevel; |
|
21 | +use Psr\Log\LoggerInterface; |
|
24 | 22 | |
25 | 23 | /** |
26 | 24 | * Class HTTPClient |
@@ -5,10 +5,8 @@ |
||
5 | 5 | |
6 | 6 | namespace Padosoft\HTTPClient; |
7 | 7 | |
8 | -use Psr\Log\LoggerInterface; |
|
9 | -use Padosoft\HTTPClient\RequestHelper; |
|
10 | 8 | use Padosoft\HTTPClient\MethodHttpHelper; |
11 | -use GuzzleHttp\Client; |
|
9 | +use Padosoft\HTTPClient\RequestHelper; |
|
12 | 10 | |
13 | 11 | /** |
14 | 12 | * Class HttpHelper |
@@ -81,7 +81,7 @@ |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @return null|string |
|
84 | + * @return string |
|
85 | 85 | */ |
86 | 86 | public function getFilename() |
87 | 87 | { |