Completed
Pull Request — master (#202)
by
unknown
03:30
created
src/Shipping.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,12 +312,16 @@
 block discarded – undo
312 312
                
313 313
                if ($shipmentChargeRec == 1) { 
314 314
                   $rec = $shipment->getItemizedPaymentInformation()->getTransportationShipmentCharge(); 
315
-                  if ($rec == null) continue; 
315
+                  if ($rec == null) {
316
+                      continue;
317
+                  }
316 318
                   $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge'));
317 319
                   $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_TRANSPORTATION));
318 320
                } else {
319 321
                   $rec = $shipment->getItemizedPaymentInformation()->getDutiesAndTaxesShipmentCharge(); 
320
-                  if ($rec == null) continue; 
322
+                  if ($rec == null) {
323
+                      continue;
324
+                  }
321 325
                   $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge'));
322 326
                   $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_DUTIES));
323 327
                }
Please login to merge, or discard this patch.