@@ -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 | } |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | |
| 412 | 412 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
| 413 | 413 | { |
| 414 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 414 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 415 | 415 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 416 | 416 | }); |
| 417 | 417 | } |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | */ |
| 467 | 467 | public function getId(): int |
| 468 | 468 | { |
| 469 | - return (int)$this->id; |
|
| 469 | + return (int) $this->id; |
|
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | /** |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | */ |
| 485 | 485 | public function getExternalId(): int |
| 486 | 486 | { |
| 487 | - return (int)$this->externalId; |
|
| 487 | + return (int) $this->externalId; |
|
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
@@ -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 | /** |