@@ -1,6 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace badams\MicrosoftTranslator; |
3 | 3 | |
4 | +use GuzzleHttp\Exception\RequestException; |
|
4 | 5 | use badams\MicrosoftTranslator\Exceptions\ArgumentException; |
5 | 6 | use badams\MicrosoftTranslator\Exceptions\AuthException; |
6 | 7 | use badams\MicrosoftTranslator\Exceptions\QuotaExceededException; |
@@ -9,8 +10,6 @@ discard block |
||
9 | 10 | use badams\MicrosoftTranslator\Methods\Detect; |
10 | 11 | use badams\MicrosoftTranslator\Methods\Speak; |
11 | 12 | use badams\MicrosoftTranslator\Methods\Translate; |
12 | -use GuzzleHttp\Exception\RequestException; |
|
13 | -use GuzzleHttp\Message\ResponseInterface; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * Class MicrosoftTranslator |
@@ -161,7 +161,7 @@ |
||
161 | 161 | { |
162 | 162 | if (strpos($message, 'TranslateApiException') === 0 |
163 | 163 | && strpos($message, 'credentials has zero balance.') |
164 | - ){ |
|
164 | + ) { |
|
165 | 165 | throw new QuotaExceededException($message); |
166 | 166 | } |
167 | 167 | } |