@@ -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 | /** |
@@ -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 | /** |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | |
455 | 455 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
456 | 456 | { |
457 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
457 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
458 | 458 | return $element->getExternalId() === $manufacturer->getExternalId(); |
459 | 459 | }); |
460 | 460 | } |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | $variantGroup = $variantGroup->getExternalId(); |
480 | 480 | } |
481 | 481 | |
482 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
482 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
483 | 483 | return $element->getExternalId() === $variantGroup; |
484 | 484 | }); |
485 | 485 | } |
@@ -538,11 +538,11 @@ discard block |
||
538 | 538 | |
539 | 539 | public function hasChild($product) : bool |
540 | 540 | { |
541 | - if($product instanceof ProductInterface) { |
|
541 | + if ($product instanceof ProductInterface) { |
|
542 | 542 | $product = $product->getExternalId(); |
543 | 543 | } |
544 | 544 | |
545 | - return $this->children->exists(function ($key, ProductInterface $element) use ($product) { |
|
545 | + return $this->children->exists(function($key, ProductInterface $element) use ($product) { |
|
546 | 546 | return $element->getExternalId() === $product; |
547 | 547 | }); |
548 | 548 | } |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | */ |
556 | 556 | public function getId(): int |
557 | 557 | { |
558 | - return (int)$this->id; |
|
558 | + return (int) $this->id; |
|
559 | 559 | } |
560 | 560 | |
561 | 561 | /** |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | */ |
574 | 574 | public function getExternalId(): int |
575 | 575 | { |
576 | - return (int)$this->externalId; |
|
576 | + return (int) $this->externalId; |
|
577 | 577 | } |
578 | 578 | |
579 | 579 | /** |