@@ -133,7 +133,7 @@ |
||
| 133 | 133 | */ |
| 134 | 134 | public function getExternalId(): int |
| 135 | 135 | { |
| 136 | - return (int)$this->externalId; |
|
| 136 | + return (int) $this->externalId; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function getId(): int |
| 102 | 102 | { |
| 103 | - return (int)$this->id; |
|
| 103 | + return (int) $this->id; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function getSpecialOfferPrice() |
| 210 | 210 | { |
| 211 | - return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->specialOfferPrice); |
|
| 211 | + return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->specialOfferPrice); |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public function getUnitPrice() |
| 233 | 233 | { |
| 234 | - return DandomainFoundation\createMoney((string)$this->currencyCode, (int)$this->unitPrice); |
|
| 234 | + return DandomainFoundation\createMoney((string) $this->currencyCode, (int) $this->unitPrice); |
|
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | /** |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | |
| 419 | 419 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
| 420 | 420 | { |
| 421 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 421 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 422 | 422 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 423 | 423 | }); |
| 424 | 424 | } |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | $variantGroup = $variantGroup->getExternalId(); |
| 444 | 444 | } |
| 445 | 445 | |
| 446 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 446 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 447 | 447 | return $element->getExternalId() === $variantGroup; |
| 448 | 448 | }); |
| 449 | 449 | } |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | */ |
| 493 | 493 | public function getId(): int |
| 494 | 494 | { |
| 495 | - return (int)$this->id; |
|
| 495 | + return (int) $this->id; |
|
| 496 | 496 | } |
| 497 | 497 | |
| 498 | 498 | /** |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | */ |
| 511 | 511 | public function getExternalId(): int |
| 512 | 512 | { |
| 513 | - return (int)$this->externalId; |
|
| 513 | + return (int) $this->externalId; |
|
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $tagValue = $tagValue->getExternalId(); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - return $this->tagValues->exists(function ($key, TagValueInterface $element) use ($tagValue) { |
|
| 80 | + return $this->tagValues->exists(function($key, TagValueInterface $element) use ($tagValue) { |
|
| 81 | 81 | return $element->getExternalId() === $tagValue; |
| 82 | 82 | }); |
| 83 | 83 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function getId(): int |
| 106 | 106 | { |
| 107 | - return (int)$this->id; |
|
| 107 | + return (int) $this->id; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function getExternalId(): int |
| 124 | 124 | { |
| 125 | - return (int)$this->externalId; |
|
| 125 | + return (int) $this->externalId; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | public function getId(): int |
| 271 | 271 | { |
| 272 | - return (int)$this->id; |
|
| 272 | + return (int) $this->id; |
|
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | /** |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | */ |
| 288 | 288 | public function getExternalId(): int |
| 289 | 289 | { |
| 290 | - return (int)$this->externalId; |
|
| 290 | + return (int) $this->externalId; |
|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | public function getId(): int |
| 271 | 271 | { |
| 272 | - return (int)$this->id; |
|
| 272 | + return (int) $this->id; |
|
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | /** |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | */ |
| 288 | 288 | public function getExternalId(): int |
| 289 | 289 | { |
| 290 | - return (int)$this->externalId; |
|
| 290 | + return (int) $this->externalId; |
|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | public function getId(): int |
| 271 | 271 | { |
| 272 | - return (int)$this->id; |
|
| 272 | + return (int) $this->id; |
|
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | /** |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | */ |
| 288 | 288 | public function getExternalId(): int |
| 289 | 289 | { |
| 290 | - return (int)$this->externalId; |
|
| 290 | + return (int) $this->externalId; |
|
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | $orderLine = $orderLine->getExternalId(); |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | - return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) { |
|
| 382 | + return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) { |
|
| 383 | 383 | return $element->getExternalId() === $orderLine; |
| 384 | 384 | }); |
| 385 | 385 | } |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | */ |
| 409 | 409 | public function getTotalPrice() : ?Money |
| 410 | 410 | { |
| 411 | - return $this->createMoney((int)$this->totalPrice); |
|
| 411 | + return $this->createMoney((int) $this->totalPrice); |
|
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | /** |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | */ |
| 428 | 428 | public function getSalesDiscount() : ?Money |
| 429 | 429 | { |
| 430 | - return $this->createMoney((int)$this->salesDiscount); |
|
| 430 | + return $this->createMoney((int) $this->salesDiscount); |
|
| 431 | 431 | } |
| 432 | 432 | |
| 433 | 433 | /** |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | */ |
| 447 | 447 | public function getGiftCertificateAmount() : ?Money |
| 448 | 448 | { |
| 449 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
| 449 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | /** |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | */ |
| 466 | 466 | public function getShippingMethodFee() : ?Money |
| 467 | 467 | { |
| 468 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
| 468 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | /** |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | */ |
| 485 | 485 | public function getPaymentMethodFee() : ?Money |
| 486 | 486 | { |
| 487 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
| 487 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | */ |
| 504 | 504 | public function getId(): int |
| 505 | 505 | { |
| 506 | - return (int)$this->id; |
|
| 506 | + return (int) $this->id; |
|
| 507 | 507 | } |
| 508 | 508 | |
| 509 | 509 | /** |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | */ |
| 522 | 522 | public function getExternalId(): int |
| 523 | 523 | { |
| 524 | - return (int)$this->externalId; |
|
| 524 | + return (int) $this->externalId; |
|
| 525 | 525 | } |
| 526 | 526 | |
| 527 | 527 | /** |
@@ -1100,6 +1100,6 @@ discard block |
||
| 1100 | 1100 | */ |
| 1101 | 1101 | private function createMoney(int $amount = 0) : ?Money |
| 1102 | 1102 | { |
| 1103 | - return DandomainFoundation\createMoney((string)$this->currencyCode, $amount); |
|
| 1103 | + return DandomainFoundation\createMoney((string) $this->currencyCode, $amount); |
|
| 1104 | 1104 | } |
| 1105 | 1105 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function getId(): int |
| 69 | 69 | { |
| 70 | - return (int)$this->id; |
|
| 70 | + return (int) $this->id; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function getExternalId(): string |
| 87 | 87 | { |
| 88 | - return (string)$this->externalId; |
|
| 88 | + return (string) $this->externalId; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |