@@ -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 | /** |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $category = $category->getExternalId(); |
195 | 195 | } |
196 | 196 | |
197 | - return $this->parentCategories->exists(function ($key, CategoryInterface $element) use ($category) { |
|
197 | + return $this->parentCategories->exists(function($key, CategoryInterface $element) use ($category) { |
|
198 | 198 | return $element->getExternalId() === $category; |
199 | 199 | }); |
200 | 200 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | public function getId(): int |
216 | 216 | { |
217 | - return (int)$this->id; |
|
217 | + return (int) $this->id; |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | */ |
233 | 233 | public function getExternalId(): int |
234 | 234 | { |
235 | - return (int)$this->externalId; |
|
235 | + return (int) $this->externalId; |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | public function getNumber(): string |
252 | 252 | { |
253 | - return (string)$this->number; |
|
253 | + return (string) $this->number; |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
@@ -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 | /** |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | $orderLine = $orderLine->getExternalId(); |
341 | 341 | } |
342 | 342 | |
343 | - return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) { |
|
343 | + return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) { |
|
344 | 344 | return $element->getExternalId() === $orderLine; |
345 | 345 | }); |
346 | 346 | } |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | */ |
368 | 368 | public function getTotalPrice() : ?Money |
369 | 369 | { |
370 | - return $this->createMoney((int)$this->totalPrice); |
|
370 | + return $this->createMoney((int) $this->totalPrice); |
|
371 | 371 | } |
372 | 372 | |
373 | 373 | /** |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | */ |
387 | 387 | public function getSalesDiscount() : ?Money |
388 | 388 | { |
389 | - return $this->createMoney((int)$this->salesDiscount); |
|
389 | + return $this->createMoney((int) $this->salesDiscount); |
|
390 | 390 | } |
391 | 391 | |
392 | 392 | /** |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | */ |
406 | 406 | public function getGiftCertificateAmount() : ?Money |
407 | 407 | { |
408 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
408 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
409 | 409 | } |
410 | 410 | |
411 | 411 | /** |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | */ |
425 | 425 | public function getShippingMethodFee() : ?Money |
426 | 426 | { |
427 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
427 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
428 | 428 | } |
429 | 429 | |
430 | 430 | /** |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | */ |
444 | 444 | public function getPaymentMethodFee() : ?Money |
445 | 445 | { |
446 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
446 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
447 | 447 | } |
448 | 448 | |
449 | 449 | /** |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | */ |
463 | 463 | public function getId(): int |
464 | 464 | { |
465 | - return (int)$this->id; |
|
465 | + return (int) $this->id; |
|
466 | 466 | } |
467 | 467 | |
468 | 468 | /** |
@@ -1059,6 +1059,6 @@ discard block |
||
1059 | 1059 | */ |
1060 | 1060 | private function createMoney(int $amount = 0) : ?Money |
1061 | 1061 | { |
1062 | - return DandomainFoundation\createMoney((string)$this->currencyCode, $amount); |
|
1062 | + return DandomainFoundation\createMoney((string) $this->currencyCode, $amount); |
|
1063 | 1063 | } |
1064 | 1064 | } |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |