Passed
Pull Request — master (#202)
by
unknown
02:52
created
src/Entity/ShipmentCharge.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param BillShipper $billShipper
86 86
      * @return ShipmentCharge
87 87
      */
88
-    public function setBillShipper(BillShipper $billShipper= null)
88
+    public function setBillShipper(BillShipper $billShipper = null)
89 89
     {
90 90
         $this->billShipper = $billShipper;
91 91
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param BillReceiver $billReceiver
105 105
      * @return ShipmentCharge
106 106
      */
107
-    public function setBillReceiver(BillReceiver $billReceiver= null)
107
+    public function setBillReceiver(BillReceiver $billReceiver = null)
108 108
     {
109 109
         $this->billReceiver = $billReceiver;
110 110
 
Please login to merge, or discard this patch.
src/Shipping.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,12 +311,16 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.