@@ -245,12 +245,12 @@ |
||
| 245 | 245 | * This can be called from instance method translate() using __call() magic method. |
| 246 | 246 | * Use $instance->translate($string) instead. |
| 247 | 247 | * |
| 248 | - * @param string $data Text or array of texts to translate |
|
| 249 | 248 | * |
| 250 | 249 | * @throws InvalidArgumentException If the provided argument is not of type 'string' |
| 251 | 250 | * @throws ErrorException If the HTTP request fails |
| 252 | 251 | * @throws UnexpectedValueException If received data cannot be decoded |
| 253 | 252 | * |
| 253 | + * @param string $string |
|
| 254 | 254 | * @return string|bool Translated text |
| 255 | 255 | */ |
| 256 | 256 | protected function translateText($string) |
@@ -342,7 +342,7 @@ |
||
| 342 | 342 | |
| 343 | 343 | return $carry; |
| 344 | 344 | } else { |
| 345 | - return array_reduce($responseArray[0], function ($carry, $item) { |
|
| 345 | + return array_reduce($responseArray[0], function($carry, $item) { |
|
| 346 | 346 | $carry .= $item[0]; |
| 347 | 347 | |
| 348 | 348 | return $carry; |