Completed
Pull Request — master (#143)
by
unknown
01:13
created
src/GoogleTranslate.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Stichoza\GoogleTranslate;
4 4
 
5
-use BadMethodCallException;
6 5
 use ErrorException;
7 6
 use GuzzleHttp\Client;
8 7
 use GuzzleHttp\Exception\RequestException;
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -91,15 +91,15 @@  discard block
 block discarded – undo
91 91
     protected const QUERY = [
92 92
         'client'   => 'webapp',
93 93
         'dt'       => [
94
-            't',   // Translate
95
-            'bd',  // Full translate with synonym ($bodyArray[1])
96
-            'at',  // Other translate ($bodyArray[5] - in google translate page this shows when click on translated word)
97
-            'ex',  // Example part ($bodyArray[13])
98
-            'ld',  // I don't know ($bodyArray[8])
99
-            'md',  // Definition part with example ($bodyArray[12])
94
+            't', // Translate
95
+            'bd', // Full translate with synonym ($bodyArray[1])
96
+            'at', // Other translate ($bodyArray[5] - in google translate page this shows when click on translated word)
97
+            'ex', // Example part ($bodyArray[13])
98
+            'ld', // I don't know ($bodyArray[8])
99
+            'md', // Definition part with example ($bodyArray[12])
100 100
             'qca', // I don't know ($bodyArray[8])
101
-            'rw',  // Read also part ($bodyArray[14])
102
-            'rm',  // I don't know
101
+            'rw', // Read also part ($bodyArray[14])
102
+            'rm', // I don't know
103 103
             'ss'   // Full synonym ($bodyArray[11])
104 104
         ],
105 105
         'ie'       => 'UTF-8', // Input encoding
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         }
299 299
 
300 300
         // Check if translation exists
301
-        if (! $response || empty($response[0])) {
301
+        if (!$response || empty($response[0])) {
302 302
             return null;
303 303
         }
304 304
 
Please login to merge, or discard this patch.