@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
22 | - * @return transportationShipmentCharge |
|
22 | + * @return ShipmentCharge |
|
23 | 23 | */ |
24 | 24 | public function getTransportationShipmentCharge() |
25 | 25 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return dutiesAndTaxesShipmentCharge |
|
46 | + * @return ShipmentCharge |
|
47 | 47 | */ |
48 | 48 | public function getDutiesAndTaxesShipmentCharge() |
49 | 49 | { |
@@ -311,12 +311,16 @@ |
||
311 | 311 | for ($shipmentChargeRec = 1; $shipmentChargeRec <= 2; $shipmentChargeRec++) { |
312 | 312 | if ($shipmentChargeRec == 1) { |
313 | 313 | $rec = $shipment->getItemizedPaymentInformation()->getTransportationShipmentCharge(); |
314 | - if ($rec == null) continue; |
|
314 | + if ($rec == null) { |
|
315 | + continue; |
|
316 | + } |
|
315 | 317 | $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge')); |
316 | 318 | $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_TRANSPORTATION)); |
317 | 319 | } else { |
318 | 320 | $rec = $shipment->getItemizedPaymentInformation()->getDutiesAndTaxesShipmentCharge(); |
319 | - if ($rec == null) continue; |
|
321 | + if ($rec == null) { |
|
322 | + continue; |
|
323 | + } |
|
320 | 324 | $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge')); |
321 | 325 | $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_DUTIES)); |
322 | 326 | } |