@@ -158,7 +158,7 @@ |
||
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 |
@@ -36,12 +36,24 @@ |
||
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 | /** |