@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @param $action |
|
| 105 | + * @param string $action |
|
| 106 | 106 | * @param $params |
| 107 | 107 | * @param string $method |
| 108 | 108 | * @return null|string |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @param $text |
| 169 | 169 | * @param $to |
| 170 | 170 | * @param $from |
| 171 | - * @return mixed |
|
| 171 | + * @return null|string |
|
| 172 | 172 | */ |
| 173 | 173 | public function translate($text, $to, $from) |
| 174 | 174 | { |
@@ -1,13 +1,12 @@ |
||
| 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; |
| 7 | -use badams\MicrosoftTranslator\Exceptions\RecoverableException; |
|
| 8 | 8 | use badams\MicrosoftTranslator\Exceptions\TokenExpiredException; |
| 9 | 9 | use badams\MicrosoftTranslator\Exceptions\TranslatorException; |
| 10 | -use GuzzleHttp\Exception\RequestException; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * Class MicrosoftTranslator |