@@ -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 |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -151,16 +151,16 @@ discard block |
||
151 | 151 | * @var EEIFilingOption |
152 | 152 | */ |
153 | 153 | private $eeiFilingOption; |
154 | -======= |
|
154 | +=== === = |
|
155 | 155 | * @var OtherCharges |
156 | - */ |
|
156 | + * / |
|
157 | 157 | private $otherCharges; |
158 | 158 | |
159 | 159 | /** |
160 | 160 | * @var string $declarationStatement |
161 | 161 | */ |
162 | 162 | private $declarationStatement; |
163 | ->>>>>>> develop |
|
163 | +>> >> >> > develop |
|
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @return array |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | if (isset($attributes->CurrencyCode)) { |
211 | 211 | $this->setCurrencyCode($attributes->CurrencyCode); |
212 | 212 | } |
213 | -<<<<<<< HEAD |
|
213 | +<< << <<< HEAD |
|
214 | 214 | if (isset($attributes->EEIFilingOption)) { |
215 | 215 | $this->setEEIFilingOption(new EEIFilingOption($attributes->EEIFilingOption)); |
216 | 216 | ======= |
@@ -616,7 +616,4 @@ discard block |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -616,7 +616,4 @@ |
||
616 | 616 | { |
617 | 617 | $this->declarationStatement = $statement; |
618 | 618 | |
619 | - return $this; |
|
620 | - } |
|
621 | ->>>>>>> develop |
|
622 | -} |
|
619 | + return $this |
|
623 | 620 | \ No newline at end of file |
@@ -184,7 +184,7 @@ |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | - * @param $accessPointCOD |
|
187 | + * @param AccessPointCOD $accessPointCOD |
|
188 | 188 | * @return $this |
189 | 189 | */ |
190 | 190 | public function setAccessPointCOD($accessPointCOD) |