Completed
Pull Request — master (#64)
by
unknown
02:40
created
src/Stichoza/GoogleTranslate/TranslateClient.php 2 patches
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
-        }else if (isset($responseArray[1])){
346
+        } else if (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.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 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
-        }else if (isset($responseArray[1])){
346
+        } else if (isset($responseArray[1])){
347 347
           $detectedLanguages[] = $responseArray[1];
348 348
         }
349 349
 
Please login to merge, or discard this patch.