Completed
Pull Request — master (#68)
by André
03:44 queued 01:32
created
src/Translator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,12 +245,12 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.