Completed
Pull Request — master (#64)
by
unknown
03:05 queued 51s
created
src/Stichoza/GoogleTranslate/TranslateClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
         // Another case of detected language
344 344
         if (isset($responseArray[count($responseArray) - 2][0][0])) {
345 345
             $detectedLanguages[] = $responseArray[count($responseArray) - 2][0][0];
346
-        } elseif (isset($responseArray[1])){
346
+        } elseif (isset($responseArray[1])) {
347 347
           $detectedLanguages[] = $responseArray[1];
348 348
         }
349 349
 
@@ -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.