Completed
Pull Request — master (#64)
by
unknown
02:48
created
src/Stichoza/GoogleTranslate/TranslateClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         if (isset($responseArray[count($responseArray) - 2][0][0])) {
345 345
             $detectedLanguages[] = $responseArray[count($responseArray) - 2][0][0];
346 346
         } elseif (isset($responseArray[1])) {
347
-+            $detectedLanguages[] = $responseArray[1];
347
++$detectedLanguages[] = $responseArray[1];
348 348
         }
349 349
 
350 350
         // Set initial detected language to null
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
             return $responseArray;
373 373
         } else {
374 374
             if (is_array($responseArray[0])) {
375
-                return array_reduce($responseArray[0], function ($carry, $item) {
375
+                return array_reduce($responseArray[0], function($carry, $item) {
376 376
                     $carry .= $item[0];
377 377
 
378 378
                     return $carry;
Please login to merge, or discard this patch.