@@ -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 | /** |
@@ -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 | |
@@ -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 | /** |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function __toString() |
| 48 | 48 | { |
| 49 | - return (string)$this->getValue(); |
|
| 49 | + return (string) $this->getValue(); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function setCity($city) |
| 72 | 72 | { |
| 73 | - $this->city = (string)$city; |
|
| 73 | + $this->city = (string) $city; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function addHour($index, Day $day) |
| 121 | 121 | { |
| 122 | - $this->hours[(int)$index] = $day; |
|
| 122 | + $this->hours[(int) $index] = $day; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function setId($id) |
| 145 | 145 | { |
| 146 | - $this->id = (string)$id; |
|
| 146 | + $this->id = (string) $id; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function setLatitude($latitude) |
| 161 | 161 | { |
| 162 | - $this->latitude = (float)$latitude; |
|
| 162 | + $this->latitude = (float) $latitude; |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | public function setLongitude($longitude) |
| 177 | 177 | { |
| 178 | - $this->longitude = (float)$longitude; |
|
| 178 | + $this->longitude = (float) $longitude; |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function setNote($note) |
| 193 | 193 | { |
| 194 | - $this->note = (string)$note; |
|
| 194 | + $this->note = (string) $note; |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function setNr($nr) |
| 209 | 209 | { |
| 210 | - $this->nr = (string)$nr; |
|
| 210 | + $this->nr = (string) $nr; |
|
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /** |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | public function setOffice($office) |
| 225 | 225 | { |
| 226 | - $this->office = (string)$office; |
|
| 226 | + $this->office = (string) $office; |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | */ |
| 264 | 264 | public function setStreet($street) |
| 265 | 265 | { |
| 266 | - $this->street = (string)$street; |
|
| 266 | + $this->street = (string) $street; |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | /** |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | */ |
| 280 | 280 | public function setType($type) |
| 281 | 281 | { |
| 282 | - $this->type = (string)$type; |
|
| 282 | + $this->type = (string) $type; |
|
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | /** |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | */ |
| 296 | 296 | public function setX($x) |
| 297 | 297 | { |
| 298 | - $this->x = (int)$x; |
|
| 298 | + $this->x = (int) $x; |
|
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | */ |
| 312 | 312 | public function setY($y) |
| 313 | 313 | { |
| 314 | - $this->y = (int)$y; |
|
| 314 | + $this->y = (int) $y; |
|
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /** |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | public function setZip($zip) |
| 329 | 329 | { |
| 330 | - $this->zip = (string)$zip; |
|
| 330 | + $this->zip = (string) $zip; |
|
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | public function setPage($page) |
| 353 | 353 | { |
| 354 | - $this->page = (string)$page; |
|
| 354 | + $this->page = (string) $page; |
|
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | |
@@ -373,55 +373,55 @@ discard block |
||
| 373 | 373 | $poi = new Poi(); |
| 374 | 374 | |
| 375 | 375 | if (isset($recordXml->Id) && $recordXml->Id != '') { |
| 376 | - $poi->setId((string)$recordXml->Id); |
|
| 376 | + $poi->setId((string) $recordXml->Id); |
|
| 377 | 377 | } |
| 378 | 378 | if (isset($recordXml->ID) && $recordXml->ID != '') { |
| 379 | - $poi->setId((string)$recordXml->ID); |
|
| 379 | + $poi->setId((string) $recordXml->ID); |
|
| 380 | 380 | } |
| 381 | 381 | if (isset($recordXml->Type) && $recordXml->Type != '') { |
| 382 | - $poi->setType((string)$recordXml->Type); |
|
| 382 | + $poi->setType((string) $recordXml->Type); |
|
| 383 | 383 | } |
| 384 | 384 | if (isset($recordXml->Name) && $recordXml->Name != '') { |
| 385 | - $poi->setOffice((string)$recordXml->Name); |
|
| 385 | + $poi->setOffice((string) $recordXml->Name); |
|
| 386 | 386 | } |
| 387 | 387 | if (isset($recordXml->OFFICE) && $recordXml->OFFICE != '') { |
| 388 | - $poi->setOffice((string)$recordXml->OFFICE); |
|
| 388 | + $poi->setOffice((string) $recordXml->OFFICE); |
|
| 389 | 389 | } |
| 390 | 390 | if (isset($recordXml->Street) && $recordXml->Street != '') { |
| 391 | - $poi->setStreet((string)$recordXml->Street); |
|
| 391 | + $poi->setStreet((string) $recordXml->Street); |
|
| 392 | 392 | } |
| 393 | 393 | if (isset($recordXml->STREET) && $recordXml->STREET != '') { |
| 394 | - $poi->setStreet((string)$recordXml->STREET); |
|
| 394 | + $poi->setStreet((string) $recordXml->STREET); |
|
| 395 | 395 | } |
| 396 | 396 | if (isset($recordXml->Number) && $recordXml->Number != '') { |
| 397 | - $poi->setNr((string)$recordXml->Number); |
|
| 397 | + $poi->setNr((string) $recordXml->Number); |
|
| 398 | 398 | } |
| 399 | 399 | if (isset($recordXml->NR) && $recordXml->NR != '') { |
| 400 | - $poi->setNr((string)$recordXml->NR); |
|
| 400 | + $poi->setNr((string) $recordXml->NR); |
|
| 401 | 401 | } |
| 402 | 402 | if (isset($recordXml->Zip) && $recordXml->Zip != '') { |
| 403 | - $poi->setZip((string)$recordXml->Zip); |
|
| 403 | + $poi->setZip((string) $recordXml->Zip); |
|
| 404 | 404 | } |
| 405 | 405 | if (isset($recordXml->ZIP) && $recordXml->ZIP != '') { |
| 406 | - $poi->setZip((string)$recordXml->ZIP); |
|
| 406 | + $poi->setZip((string) $recordXml->ZIP); |
|
| 407 | 407 | } |
| 408 | 408 | if (isset($recordXml->City) && $recordXml->City != '') { |
| 409 | - $poi->setCity((string)$recordXml->City); |
|
| 409 | + $poi->setCity((string) $recordXml->City); |
|
| 410 | 410 | } |
| 411 | 411 | if (isset($recordXml->CITY) && $recordXml->CITY != '') { |
| 412 | - $poi->setCity((string)$recordXml->CITY); |
|
| 412 | + $poi->setCity((string) $recordXml->CITY); |
|
| 413 | 413 | } |
| 414 | 414 | if (isset($recordXml->X) && $recordXml->X != '') { |
| 415 | - $poi->setX((int)$recordXml->X); |
|
| 415 | + $poi->setX((int) $recordXml->X); |
|
| 416 | 416 | } |
| 417 | 417 | if (isset($recordXml->Y) && $recordXml->Y != '') { |
| 418 | - $poi->setY((int)$recordXml->Y); |
|
| 418 | + $poi->setY((int) $recordXml->Y); |
|
| 419 | 419 | } |
| 420 | 420 | if (isset($recordXml->Longitude) && $recordXml->Longitude != '') { |
| 421 | - $poi->setLongitude((float)$recordXml->Longitude); |
|
| 421 | + $poi->setLongitude((float) $recordXml->Longitude); |
|
| 422 | 422 | } |
| 423 | 423 | if (isset($recordXml->Latitude) && $recordXml->Latitude != '') { |
| 424 | - $poi->setLatitude((float)$recordXml->Latitude); |
|
| 424 | + $poi->setLatitude((float) $recordXml->Latitude); |
|
| 425 | 425 | } |
| 426 | 426 | if (isset($recordXml->Services) && isset($recordXml->Services->Service)) { |
| 427 | 427 | foreach ($recordXml->Services->Service as $service) { |
@@ -456,13 +456,13 @@ discard block |
||
| 456 | 456 | } |
| 457 | 457 | |
| 458 | 458 | if (isset($recordXml->ClosedFrom) && $recordXml->ClosedFrom != '') { |
| 459 | - $poi->setClosedFrom((string)$recordXml->ClosedFrom); |
|
| 459 | + $poi->setClosedFrom((string) $recordXml->ClosedFrom); |
|
| 460 | 460 | } |
| 461 | 461 | if (isset($recordXml->ClosedTo) && $recordXml->ClosedTo != '') { |
| 462 | - $poi->setClosedTo((string)$recordXml->ClosedTo); |
|
| 462 | + $poi->setClosedTo((string) $recordXml->ClosedTo); |
|
| 463 | 463 | } |
| 464 | 464 | if (isset($recordXml->NOTE) && $recordXml->NOTE != '') { |
| 465 | - $poi->setNote((string)$recordXml->NOTE); |
|
| 465 | + $poi->setNote((string) $recordXml->NOTE); |
|
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | if (isset($xml->Page) && isset($xml->Page['ServiceRef']) && $xml->Page['ServiceRef'] != '') { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $headers = curl_getinfo($curl); |
| 92 | 92 | |
| 93 | 93 | $this->logger->debug('curl response', array( |
| 94 | - 'status' => $errorNumber . ' (' . $errorMessage . ')', |
|
| 94 | + 'status' => $errorNumber.' ('.$errorMessage.')', |
|
| 95 | 95 | 'headers' => $headers, |
| 96 | 96 | 'response' => $this->responseBody |
| 97 | 97 | )); |
@@ -122,6 +122,6 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function getHttpCodeType() |
| 124 | 124 | { |
| 125 | - return 100 * (int)($this->responseHttpCode / 100); |
|
| 125 | + return 100 * (int) ($this->responseHttpCode / 100); |
|
| 126 | 126 | } |
| 127 | 127 | } |
@@ -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 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if (empty($prefix)) { |
| 71 | 71 | return $tagName; |
| 72 | 72 | } |
| 73 | - return $prefix . ':' . $tagName; |
|
| 73 | + return $prefix.':'.$tagName; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | if (empty($prefix)) { |
| 16 | 16 | return $tagName; |
| 17 | 17 | } |
| 18 | - return $prefix . ':' . $tagName; |
|
| 18 | + return $prefix.':'.$tagName; |
|
| 19 | 19 | } |
| 20 | 20 | } |