Completed
Pull Request — master (#93)
by
unknown
01:35
created
src/Stichoza/GoogleTranslate/TranslateClient.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -70,15 +70,15 @@  discard block
 block discarded – undo
70 70
         'client'   => 't',
71 71
         'hl'       => 'en',
72 72
         'dt'       => [
73
-            't',   // Translate
74
-            'bd',  // Full translate with synonym ($bodyArray[1])
75
-            'at',  // Other translate ($bodyArray[5] - in google translate page this shows when click on translated word)
76
-            'ex',  // Example part ($bodyArray[13])
77
-            'ld',  // I don't know ($bodyArray[8])
78
-            'md',  // Definition part with example ($bodyArray[12])
73
+            't', // Translate
74
+            'bd', // Full translate with synonym ($bodyArray[1])
75
+            'at', // Other translate ($bodyArray[5] - in google translate page this shows when click on translated word)
76
+            'ex', // Example part ($bodyArray[13])
77
+            'ld', // I don't know ($bodyArray[8])
78
+            'md', // Definition part with example ($bodyArray[12])
79 79
             'qca', // I don't know ($bodyArray[8])
80
-            'rw',  // Read also part ($bodyArray[14])
81
-            'rm',  // I don't know
80
+            'rw', // Read also part ($bodyArray[14])
81
+            'rm', // I don't know
82 82
             'ss'   // Full synonym ($bodyArray[11])
83 83
         ],
84 84
         'sl'       => null, // Source language
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
             return $responseArray;
432 432
         } else {
433 433
             if (is_array($responseArray[0])) {
434
-                return array_reduce($responseArray[0], function ($carry, $item) {
434
+                return array_reduce($responseArray[0], function($carry, $item) {
435 435
                     $carry .= $item[0];
436 436
 
437 437
                     return $carry;
Please login to merge, or discard this patch.