@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |
161 | - * @param $access |
|
161 | + * @param string $access |
|
162 | 162 | * |
163 | 163 | * @return $this |
164 | 164 | */ |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | - * @param $request |
|
181 | + * @param string $request |
|
182 | 182 | * |
183 | 183 | * @return $this |
184 | 184 | */ |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @param $endpointUrl |
|
201 | + * @param string $endpointUrl |
|
202 | 202 | * |
203 | 203 | * @return $this |
204 | 204 | */ |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
221 | - * @param $body |
|
221 | + * @param string $body |
|
222 | 222 | * @return string |
223 | 223 | */ |
224 | 224 | protected function convertEncoding($body) |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Psr\Log\LoggerInterface; |
10 | 10 | use Psr\Log\NullLogger; |
11 | 11 | use SimpleXMLElement; |
12 | -use Ups\Exception\InvalidResponseException; |
|
13 | 12 | use Ups\Exception\RequestException; |
14 | 13 | |
15 | 14 | class Request implements RequestInterface, LoggerAwareInterface |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'endpointurl' => $this->getEndpointUrl(), |
102 | 102 | ]); |
103 | 103 | |
104 | - $this->logger->debug('Request: ' . $this->getRequest(), [ |
|
104 | + $this->logger->debug('Request: '.$this->getRequest(), [ |
|
105 | 105 | 'id' => $id, |
106 | 106 | 'endpointurl' => $this->getEndpointUrl(), |
107 | 107 | ]); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $response = $this->client->post( |
111 | 111 | $this->getEndpointUrl(), |
112 | 112 | [ |
113 | - 'body' => $this->getAccess() . $this->getRequest(), |
|
113 | + 'body' => $this->getAccess().$this->getRequest(), |
|
114 | 114 | 'headers' => [ |
115 | 115 | 'Content-type' => 'application/x-www-form-urlencoded; charset=utf-8', |
116 | 116 | 'Accept-Charset' => 'UTF-8', |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'endpointurl' => $this->getEndpointUrl(), |
127 | 127 | ]); |
128 | 128 | |
129 | - $this->logger->debug('Response: ' . $body, [ |
|
129 | + $this->logger->debug('Response: '.$body, [ |
|
130 | 130 | 'id' => $id, |
131 | 131 | 'endpointurl' => $this->getEndpointUrl(), |
132 | 132 | ]); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'endpointurl' => $this->getEndpointUrl(), |
154 | 154 | ]); |
155 | 155 | |
156 | - throw new RequestException('Failure: ' . $e->getMessage()); |
|
156 | + throw new RequestException('Failure: '.$e->getMessage()); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 |