Passed
Push — master ( 62528d...f6ce91 )
by Zangra
04:28 queued 02:11
created
src/Bpost/Order/Box/At247.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
         }
159 159
         if ($this->memberId !== null) {
160 160
             $boxElement->appendChild($document->createElement('memberId', $this->memberId));
161
-        }else if ($this->unregistered !== null) {
161
+        } else if ($this->unregistered !== null) {
162 162
             $boxElement->appendChild($this->unregistered->toXML($document));
163 163
         }
164 164
 
Please login to merge, or discard this patch.
src/Bpost/Order/Address.php 1 patch
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,12 +36,24 @@
 block discarded – undo
36 36
         ?string $locality = null,
37 37
         ?string $countryCode = null
38 38
     ) {
39
-        if ($streetName   !== null) $this->setStreetName($streetName);
40
-        if ($number       !== null) $this->setNumber($number);
41
-        if ($box          !== null) $this->setBox($box);
42
-        if ($postalCode   !== null) $this->setPostalCode($postalCode);
43
-        if ($locality     !== null) $this->setLocality($locality);
44
-        if ($countryCode  !== null) $this->setCountryCode($countryCode);
39
+        if ($streetName   !== null) {
40
+            $this->setStreetName($streetName);
41
+        }
42
+        if ($number       !== null) {
43
+            $this->setNumber($number);
44
+        }
45
+        if ($box          !== null) {
46
+            $this->setBox($box);
47
+        }
48
+        if ($postalCode   !== null) {
49
+            $this->setPostalCode($postalCode);
50
+        }
51
+        if ($locality     !== null) {
52
+            $this->setLocality($locality);
53
+        }
54
+        if ($countryCode  !== null) {
55
+            $this->setCountryCode($countryCode);
56
+        }
45 57
     }
46 58
 
47 59
     /**
Please login to merge, or discard this patch.