@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | if (isset($xml->atBpost->product) && $xml->atBpost->product != '') { |
| 263 | 263 | $atBpost->setProduct( |
| 264 | - (string)$xml->atBpost->product |
|
| 264 | + (string) $xml->atBpost->product |
|
| 265 | 265 | ); |
| 266 | 266 | } |
| 267 | 267 | if (isset($xml->atBpost->options)) { |
@@ -296,27 +296,27 @@ discard block |
||
| 296 | 296 | } |
| 297 | 297 | if (isset($xml->atBpost->weight) && $xml->atBpost->weight != '') { |
| 298 | 298 | $atBpost->setWeight( |
| 299 | - (int)$xml->atBpost->weight |
|
| 299 | + (int) $xml->atBpost->weight |
|
| 300 | 300 | ); |
| 301 | 301 | } |
| 302 | 302 | if (isset($xml->atBpost->receiverName) && $xml->atBpost->receiverName != '') { |
| 303 | 303 | $atBpost->setReceiverName( |
| 304 | - (string)$xml->atBpost->receiverName |
|
| 304 | + (string) $xml->atBpost->receiverName |
|
| 305 | 305 | ); |
| 306 | 306 | } |
| 307 | 307 | if (isset($xml->atBpost->receiverCompany) && $xml->atBpost->receiverCompany != '') { |
| 308 | 308 | $atBpost->setReceiverCompany( |
| 309 | - (string)$xml->atBpost->receiverCompany |
|
| 309 | + (string) $xml->atBpost->receiverCompany |
|
| 310 | 310 | ); |
| 311 | 311 | } |
| 312 | 312 | if (isset($xml->atBpost->pugoId) && $xml->atBpost->pugoId != '') { |
| 313 | 313 | $atBpost->setPugoId( |
| 314 | - (string)$xml->atBpost->pugoId |
|
| 314 | + (string) $xml->atBpost->pugoId |
|
| 315 | 315 | ); |
| 316 | 316 | } |
| 317 | 317 | if (isset($xml->atBpost->pugoName) && $xml->atBpost->pugoName != '') { |
| 318 | 318 | $atBpost->setPugoName( |
| 319 | - (string)$xml->atBpost->pugoName |
|
| 319 | + (string) $xml->atBpost->pugoName |
|
| 320 | 320 | ); |
| 321 | 321 | } |
| 322 | 322 | if (isset($xml->atBpost->pugoAddress)) { |
@@ -330,12 +330,12 @@ discard block |
||
| 330 | 330 | } |
| 331 | 331 | if (isset($xml->atBpost->requestedDeliveryDate) && $xml->atBpost->requestedDeliveryDate != '') { |
| 332 | 332 | $atBpost->setRequestedDeliveryDate( |
| 333 | - (string)$xml->atBpost->requestedDeliveryDate |
|
| 333 | + (string) $xml->atBpost->requestedDeliveryDate |
|
| 334 | 334 | ); |
| 335 | 335 | } |
| 336 | 336 | if (isset($xml->atBpost->shopHandlingInstruction) && $xml->atBpost->shopHandlingInstruction != '') { |
| 337 | 337 | $atBpost->setShopHandlingInstruction( |
| 338 | - (string)$xml->atBpost->shopHandlingInstruction |
|
| 338 | + (string) $xml->atBpost->shopHandlingInstruction |
|
| 339 | 339 | ); |
| 340 | 340 | } |
| 341 | 341 | |
@@ -162,15 +162,15 @@ |
||
| 162 | 162 | $self = new self(); |
| 163 | 163 | |
| 164 | 164 | if (isset($xml->language) && $xml->language != '') { |
| 165 | - $self->setLanguage((string)$xml->language); |
|
| 165 | + $self->setLanguage((string) $xml->language); |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | if (isset($xml->mobilePhone) && $xml->mobilePhone != '') { |
| 169 | - $self->setMobilePhone((string)$xml->mobilePhone); |
|
| 169 | + $self->setMobilePhone((string) $xml->mobilePhone); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | if (isset($xml->emailAddress) && $xml->emailAddress != '') { |
| 173 | - $self->setEmailAddress((string)$xml->emailAddress); |
|
| 173 | + $self->setEmailAddress((string) $xml->emailAddress); |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | if (isset($xml->parcelLockerReducedMobilityZone)) { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | public function setRequestedDeliveryDate($requestedDeliveryDate) |
| 82 | 82 | { |
| 83 | - $this->requestedDeliveryDate = (string)$requestedDeliveryDate; |
|
| 83 | + $this->requestedDeliveryDate = (string) $requestedDeliveryDate; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | public function setRequestedDeliveryDate($requestedDeliveryDate) |
| 195 | 195 | { |
| 196 | - $this->requestedDeliveryDate = (string)$requestedDeliveryDate; |
|
| 196 | + $this->requestedDeliveryDate = (string) $requestedDeliveryDate; |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | |
| 307 | 307 | if (isset($xml->{'at24-7'}->product) && $xml->{'at24-7'}->product != '') { |
| 308 | 308 | $at247->setProduct( |
| 309 | - (string)$xml->{'at24-7'}->product |
|
| 309 | + (string) $xml->{'at24-7'}->product |
|
| 310 | 310 | ); |
| 311 | 311 | } |
| 312 | 312 | if (isset($xml->{'at24-7'}->options)) { |
@@ -332,32 +332,32 @@ discard block |
||
| 332 | 332 | } |
| 333 | 333 | if (isset($xml->{'at24-7'}->weight) && $xml->{'at24-7'}->weight != '') { |
| 334 | 334 | $at247->setWeight( |
| 335 | - (int)$xml->{'at24-7'}->weight |
|
| 335 | + (int) $xml->{'at24-7'}->weight |
|
| 336 | 336 | ); |
| 337 | 337 | } |
| 338 | 338 | if (isset($xml->{'at24-7'}->memberId) && $xml->{'at24-7'}->memberId != '') { |
| 339 | 339 | $at247->setMemberId( |
| 340 | - (string)$xml->{'at24-7'}->memberId |
|
| 340 | + (string) $xml->{'at24-7'}->memberId |
|
| 341 | 341 | ); |
| 342 | 342 | } |
| 343 | 343 | if (isset($xml->{'at24-7'}->receiverName) && $xml->{'at24-7'}->receiverName != '') { |
| 344 | 344 | $at247->setReceiverName( |
| 345 | - (string)$xml->{'at24-7'}->receiverName |
|
| 345 | + (string) $xml->{'at24-7'}->receiverName |
|
| 346 | 346 | ); |
| 347 | 347 | } |
| 348 | 348 | if (isset($xml->{'at24-7'}->receiverCompany) && $xml->{'at24-7'}->receiverCompany != '') { |
| 349 | 349 | $at247->setReceiverCompany( |
| 350 | - (string)$xml->{'at24-7'}->receiverCompany |
|
| 350 | + (string) $xml->{'at24-7'}->receiverCompany |
|
| 351 | 351 | ); |
| 352 | 352 | } |
| 353 | 353 | if (isset($xml->{'at24-7'}->parcelsDepotId) && $xml->{'at24-7'}->parcelsDepotId != '') { |
| 354 | 354 | $at247->setParcelsDepotId( |
| 355 | - (string)$xml->{'at24-7'}->parcelsDepotId |
|
| 355 | + (string) $xml->{'at24-7'}->parcelsDepotId |
|
| 356 | 356 | ); |
| 357 | 357 | } |
| 358 | 358 | if (isset($xml->{'at24-7'}->parcelsDepotName) && $xml->{'at24-7'}->parcelsDepotName != '') { |
| 359 | 359 | $at247->setParcelsDepotName( |
| 360 | - (string)$xml->{'at24-7'}->parcelsDepotName |
|
| 360 | + (string) $xml->{'at24-7'}->parcelsDepotName |
|
| 361 | 361 | ); |
| 362 | 362 | } |
| 363 | 363 | if (isset($xml->{'at24-7'}->parcelsDepotAddress)) { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | } |
| 372 | 372 | if (isset($xml->{'at24-7'}->requestedDeliveryDate) && $xml->{'at24-7'}->requestedDeliveryDate != '') { |
| 373 | 373 | $at247->setRequestedDeliveryDate( |
| 374 | - (string)$xml->{'at24-7'}->requestedDeliveryDate |
|
| 374 | + (string) $xml->{'at24-7'}->requestedDeliveryDate |
|
| 375 | 375 | ); |
| 376 | 376 | } |
| 377 | 377 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function setInNetworkCutOff($inNetworkCutOff) |
| 47 | 47 | { |
| 48 | - $this->inNetworkCutOff = (string)$inNetworkCutOff; |
|
| 48 | + $this->inNetworkCutOff = (string) $inNetworkCutOff; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | if (isset($bpostOnAppointmentXml->inNetworkCutOff) && $bpostOnAppointmentXml->inNetworkCutOff != '') { |
| 126 | 126 | $self->setInNetworkCutOff( |
| 127 | - (string)$bpostOnAppointmentXml->inNetworkCutOff |
|
| 127 | + (string) $bpostOnAppointmentXml->inNetworkCutOff |
|
| 128 | 128 | ); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | if (isset($nationalXml->product) && $nationalXml->product != '') { |
| 222 | 222 | $self->setProduct( |
| 223 | - (string)$nationalXml->product |
|
| 223 | + (string) $nationalXml->product |
|
| 224 | 224 | ); |
| 225 | 225 | } |
| 226 | 226 | |
@@ -254,19 +254,19 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | if (isset($nationalXml->weight) && $nationalXml->weight != '') { |
| 256 | 256 | $self->setWeight( |
| 257 | - (int)$nationalXml->weight |
|
| 257 | + (int) $nationalXml->weight |
|
| 258 | 258 | ); |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | if (isset($nationalXml->openingHours) && $nationalXml->openingHours != '') { |
| 262 | 262 | foreach ($nationalXml->openingHours->children() as $day => $value) { |
| 263 | - $self->addOpeningHour(new Day($day, (string)$value)); |
|
| 263 | + $self->addOpeningHour(new Day($day, (string) $value)); |
|
| 264 | 264 | } |
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | if (isset($nationalXml->desiredDeliveryPlace) && $nationalXml->desiredDeliveryPlace != '') { |
| 268 | 268 | $self->setDesiredDeliveryPlace( |
| 269 | - (string)$nationalXml->desiredDeliveryPlace |
|
| 269 | + (string) $nationalXml->desiredDeliveryPlace |
|
| 270 | 270 | ); |
| 271 | 271 | } |
| 272 | 272 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function setAdditionalCustomerReference($additionalCustomerReference) |
| 163 | 163 | { |
| 164 | - $this->additionalCustomerReference = (string)$additionalCustomerReference; |
|
| 164 | + $this->additionalCustomerReference = (string) $additionalCustomerReference; |
|
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | $box->setRemark((string) $xml->remark); |
| 326 | 326 | } |
| 327 | 327 | if (isset($xml->additionalCustomerReference) && $xml->additionalCustomerReference != '') { |
| 328 | - $box->setAdditionalCustomerReference((string)$xml->additionalCustomerReference); |
|
| 328 | + $box->setAdditionalCustomerReference((string) $xml->additionalCustomerReference); |
|
| 329 | 329 | } |
| 330 | 330 | if (!empty($xml->barcode)) { |
| 331 | 331 | $box->setBarcode((string) $xml->barcode); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function setName($name) |
| 67 | 67 | { |
| 68 | - $this->name = (string)$name; |
|
| 68 | + $this->name = (string) $name; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function setVisibility($visibility) |
| 94 | 94 | { |
| 95 | - $this->visibility = (string)$visibility; |
|
| 95 | + $this->visibility = (string) $visibility; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | private function setKey($key) |
| 42 | 42 | { |
| 43 | - $this->key = (string)($key ?: $this->getDefaultKey()); |
|
| 43 | + $this->key = (string) ($key ?: $this->getDefaultKey()); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function __toString() |
| 58 | 58 | { |
| 59 | - return (string)$this->getValue(); |
|
| 59 | + return (string) $this->getValue(); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |