@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | curl_setopt($this->curl, CURLOPT_URL, $url); |
121 | 121 | |
122 | 122 | curl_setopt($this->curl, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']); |
123 | - curl_setopt($this->curl, CURLOPT_HTTPHEADER, ['Authorization: DeepL-Auth-Key ' . $this->authKey]); |
|
123 | + curl_setopt($this->curl, CURLOPT_HTTPHEADER, ['Authorization: DeepL-Auth-Key '.$this->authKey]); |
|
124 | 124 | |
125 | 125 | if ($this->proxy !== null) { |
126 | 126 | curl_setopt($this->curl, CURLOPT_PROXY, $this->proxy); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $response = curl_exec($this->curl); |
138 | 138 | |
139 | 139 | if (curl_errno($this->curl)) { |
140 | - throw new DeepLException('There was a cURL Request Error : ' . curl_error($this->curl)); |
|
140 | + throw new DeepLException('There was a cURL Request Error : '.curl_error($this->curl)); |
|
141 | 141 | } |
142 | 142 | $httpCode = curl_getinfo($this->curl, CURLINFO_HTTP_CODE); |
143 | 143 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | unset($paramsArray['text']); |
206 | 206 | $textString = ''; |
207 | 207 | foreach ($text as $textElement) { |
208 | - $textString .= '&text=' . rawurlencode($textElement); |
|
208 | + $textString .= '&text='.rawurlencode($textElement); |
|
209 | 209 | } |
210 | 210 | } |
211 | 211 | |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $body = http_build_query($paramsArray, null, '&'); |
219 | 219 | |
220 | 220 | if (isset($textString)) { |
221 | - $body = $textString . '&' . $body; |
|
221 | + $body = $textString.'&'.$body; |
|
222 | 222 | } |
223 | 223 | |
224 | 224 | return $body; |