@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * @param $id |
|
72 | - * @param $secret |
|
71 | + * @param string $id |
|
72 | + * @param string $secret |
|
73 | 73 | */ |
74 | 74 | public function setClient($id, $secret) |
75 | 75 | { |
@@ -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 |
@@ -165,10 +165,10 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @param $text |
|
169 | - * @param $to |
|
170 | - * @param $from |
|
171 | - * @return mixed |
|
168 | + * @param string $text |
|
169 | + * @param string $to |
|
170 | + * @param string $from |
|
171 | + * @return null|string |
|
172 | 172 | */ |
173 | 173 | public function translate($text, $to, $from) |
174 | 174 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use badams\MicrosoftTranslator\Exceptions\ArgumentException; |
5 | 5 | use badams\MicrosoftTranslator\Exceptions\AuthException; |
6 | 6 | use badams\MicrosoftTranslator\Exceptions\QuotaExceededException; |
7 | -use badams\MicrosoftTranslator\Exceptions\RecoverableException; |
|
8 | 7 | use badams\MicrosoftTranslator\Exceptions\TokenExpiredException; |
9 | 8 | use badams\MicrosoftTranslator\Exceptions\TranslatorException; |
10 | 9 | use GuzzleHttp\Exception\RequestException; |