@@ -551,7 +551,7 @@ |
||
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | /** |
| 554 | - * @return ShipmentTotalWeight |
|
| 554 | + * @return InvoiceLineTotal |
|
| 555 | 555 | */ |
| 556 | 556 | public function getShipmentTotalWeight() |
| 557 | 557 | { |
@@ -550,9 +550,9 @@ |
||
| 550 | 550 | $this->deliveryTimeInformation = $deliveryTimeInformation; |
| 551 | 551 | } |
| 552 | 552 | |
| 553 | - /** |
|
| 554 | - * @return ShipmentTotalWeight |
|
| 555 | - */ |
|
| 553 | + /** |
|
| 554 | + * @return ShipmentTotalWeight |
|
| 555 | + */ |
|
| 556 | 556 | public function getShipmentTotalWeight() |
| 557 | 557 | { |
| 558 | 558 | return $this->ShipmentTotalWeight; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $node = $document->createElement('ShipmentTotalWeight'); |
| 38 | 38 | if ($this->getUnitOfMeasurement()) { |
| 39 | 39 | $node->appendChild($this->getUnitOfMeasurement()->toNode($document)); |
| 40 | - // $node->appendChild($document->createElement('UnitOfMeasurement', $this->getUnitOfMeasurement())); |
|
| 40 | + // $node->appendChild($document->createElement('UnitOfMeasurement', $this->getUnitOfMeasurement())); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $node->appendChild($document->createElement('Weight', $this->getWeight())); |
@@ -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', |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | 'id' => $id, |
| 126 | 126 | 'endpointurl' => $this->getEndpointUrl(), |
| 127 | 127 | ]); |
| 128 | - $this->logger->debug('Response: ' . $body, [ |
|
| 128 | + $this->logger->debug('Response: '.$body, [ |
|
| 129 | 129 | 'id' => $id, |
| 130 | 130 | 'endpointurl' => $this->getEndpointUrl(), |
| 131 | 131 | ]); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | return $responseInstance->setText($body)->setResponse($xml); |
| 142 | 142 | } elseif ($xml->Response->ResponseStatusCode == 0) { |
| 143 | - throw new InvalidResponseException('Failure: ' . $xml->Response->Error->ErrorDescription . ' (' . $xml->Response->Error->ErrorCode . ')'); |
|
| 143 | + throw new InvalidResponseException('Failure: '.$xml->Response->Error->ErrorDescription.' ('.$xml->Response->Error->ErrorCode.')'); |
|
| 144 | 144 | } |
| 145 | 145 | } else { |
| 146 | 146 | throw new InvalidResponseException('Failure: response is in an unexpected format.'); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | 'endpointurl' => $this->getEndpointUrl(), |
| 153 | 153 | ]); |
| 154 | 154 | |
| 155 | - throw new RequestException('Failure: ' . $e->getMessage()); |
|
| 155 | + throw new RequestException('Failure: '.$e->getMessage()); |
|
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | |