Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0609bfc

Browse files
updated array
1 parent d15b847 commit 0609bfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public function request($url, $body = '', $method = 'POST')
119119

120120
curl_setopt($this->curl, CURLOPT_URL, $url);
121121

122-
curl_setopt($this->curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
123-
curl_setopt($this->curl, CURLOPT_HTTPHEADER, array("Authorization: DeepL-Auth-Key $this->authKey"));
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]);
124124

125125
if ($this->proxy !== null) {
126126
curl_setopt($this->curl, CURLOPT_PROXY, $this->proxy);
@@ -231,6 +231,7 @@ public function buildQuery($paramsArray)
231231
* @param $httpCode
232232
*
233233
* @return array|mixed|null
234+
*
234235
* @throws DeepLException
235236
*/
236237
private function handleResponse($response, $httpCode)

0 commit comments

Comments
 (0)