@@ -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 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | public function __toString() |
| 59 | 59 | { |
| 60 | - return (string)$this->name; |
|
| 60 | + return (string) $this->name; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function getId(): int |
| 67 | 67 | { |
| 68 | - return (int)$this->id; |
|
| 68 | + return (int) $this->id; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function getExternalId(): int |
| 85 | 85 | { |
| 86 | - return (int)$this->externalId; |
|
| 86 | + return (int) $this->externalId; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | public function __toString() |
| 72 | 72 | { |
| 73 | - return (string)$this->name; |
|
| 73 | + return (string) $this->name; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | public function getId(): int |
| 80 | 80 | { |
| 81 | - return (int)$this->id; |
|
| 81 | + return (int) $this->id; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function getExternalId(): string |
| 98 | 98 | { |
| 99 | - return (string)$this->externalId; |
|
| 99 | + return (string) $this->externalId; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | public function __toString() |
| 59 | 59 | { |
| 60 | - return (string)$this->name; |
|
| 60 | + return (string) $this->name; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function getId(): int |
| 67 | 67 | { |
| 68 | - return (int)$this->id; |
|
| 68 | + return (int) $this->id; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function getExternalId(): int |
| 85 | 85 | { |
| 86 | - return (int)$this->externalId; |
|
| 86 | + return (int) $this->externalId; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | public function __toString() |
| 59 | 59 | { |
| 60 | - return (string)$this->name; |
|
| 60 | + return (string) $this->name; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function getId(): int |
| 67 | 67 | { |
| 68 | - return (int)$this->id; |
|
| 68 | + return (int) $this->id; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function getExternalId(): int |
| 85 | 85 | { |
| 86 | - return (int)$this->externalId; |
|
| 86 | + return (int) $this->externalId; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function getId(): int |
| 97 | 97 | { |
| 98 | - return (int)$this->id; |
|
| 98 | + return (int) $this->id; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public function getIdentifier(): string |
| 115 | 115 | { |
| 116 | - return (string)$this->identifier; |
|
| 116 | + return (string) $this->identifier; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function getType(): string |
| 133 | 133 | { |
| 134 | - return (string)$this->type; |
|
| 134 | + return (string) $this->type; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | public function getStatus(): string |
| 151 | 151 | { |
| 152 | - return (string)$this->status; |
|
| 152 | + return (string) $this->status; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
@@ -373,7 +373,7 @@ |
||
| 373 | 373 | $this->payCode = $payCode; |
| 374 | 374 | $this->setIsoCodeNumeric($payCode); |
| 375 | 375 | |
| 376 | - if($payCode) { |
|
| 376 | + if ($payCode) { |
|
| 377 | 377 | $iso4217 = new ISO4217(); |
| 378 | 378 | $currency = $iso4217->getByNumeric($payCode); |
| 379 | 379 | $this->setIsoCodeAlpha($currency['alpha3']); |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | $orderLine = $orderLine->getExternalId(); |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | - return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) { |
|
| 429 | + return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) { |
|
| 430 | 430 | return $element->getExternalId() === $orderLine; |
| 431 | 431 | }); |
| 432 | 432 | } |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | */ |
| 456 | 456 | public function getTotalPrice() : ?Money |
| 457 | 457 | { |
| 458 | - return $this->createMoney((int)$this->totalPrice); |
|
| 458 | + return $this->createMoney((int) $this->totalPrice); |
|
| 459 | 459 | } |
| 460 | 460 | |
| 461 | 461 | /** |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | */ |
| 475 | 475 | public function getSalesDiscount() : ?Money |
| 476 | 476 | { |
| 477 | - return $this->createMoney((int)$this->salesDiscount); |
|
| 477 | + return $this->createMoney((int) $this->salesDiscount); |
|
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | /** |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | */ |
| 494 | 494 | public function getGiftCertificateAmount() : ?Money |
| 495 | 495 | { |
| 496 | - return $this->createMoney((int)$this->giftCertificateAmount); |
|
| 496 | + return $this->createMoney((int) $this->giftCertificateAmount); |
|
| 497 | 497 | } |
| 498 | 498 | |
| 499 | 499 | /** |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | */ |
| 513 | 513 | public function getShippingMethodFee() : ?Money |
| 514 | 514 | { |
| 515 | - return $this->createMoney((int)$this->shippingMethodFee); |
|
| 515 | + return $this->createMoney((int) $this->shippingMethodFee); |
|
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | /** |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | */ |
| 532 | 532 | public function getPaymentMethodFee() : ?Money |
| 533 | 533 | { |
| 534 | - return $this->createMoney((int)$this->paymentMethodFee); |
|
| 534 | + return $this->createMoney((int) $this->paymentMethodFee); |
|
| 535 | 535 | } |
| 536 | 536 | |
| 537 | 537 | /** |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | */ |
| 551 | 551 | public function getId(): int |
| 552 | 552 | { |
| 553 | - return (int)$this->id; |
|
| 553 | + return (int) $this->id; |
|
| 554 | 554 | } |
| 555 | 555 | |
| 556 | 556 | /** |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | */ |
| 569 | 569 | public function getExternalId(): int |
| 570 | 570 | { |
| 571 | - return (int)$this->externalId; |
|
| 571 | + return (int) $this->externalId; |
|
| 572 | 572 | } |
| 573 | 573 | |
| 574 | 574 | /** |
@@ -1147,7 +1147,7 @@ discard block |
||
| 1147 | 1147 | */ |
| 1148 | 1148 | private function createMoney(int $amount = 0) : ?Money |
| 1149 | 1149 | { |
| 1150 | - if(!$this->currency) { |
|
| 1150 | + if (!$this->currency) { |
|
| 1151 | 1151 | return null; |
| 1152 | 1152 | } |
| 1153 | 1153 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function getId(): int |
| 184 | 184 | { |
| 185 | - return (int)$this->id; |
|
| 185 | + return (int) $this->id; |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | */ |
| 201 | 201 | public function getExternalId(): int |
| 202 | 202 | { |
| 203 | - return (int)$this->externalId; |
|
| 203 | + return (int) $this->externalId; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | public function getTotalPrice() |
| 292 | 292 | { |
| 293 | - return DandomainFoundation\createMoney($this->getCurrencyCode(), (int)$this->totalPrice); |
|
| 293 | + return DandomainFoundation\createMoney($this->getCurrencyCode(), (int) $this->totalPrice); |
|
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | /** |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function getUnitPrice() |
| 311 | 311 | { |
| 312 | - return DandomainFoundation\createMoney($this->getCurrencyCode(), (int)$this->unitPrice); |
|
| 312 | + return DandomainFoundation\createMoney($this->getCurrencyCode(), (int) $this->unitPrice); |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | /** |