@@ -2,7 +2,6 @@ |
||
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; |
@@ -91,15 +91,15 @@ discard block |
||
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 |
||
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 |