@@ -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']); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | public function getId(): int |
186 | 186 | { |
187 | - return (int)$this->id; |
|
187 | + return (int) $this->id; |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function getExternalId(): int |
204 | 204 | { |
205 | - return (int)$this->externalId; |
|
205 | + return (int) $this->externalId; |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | /** |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | */ |
293 | 293 | public function getTotalPrice() |
294 | 294 | { |
295 | - return DandomainFoundation\createMoney((string)$this->getOrder()->getCurrency(), (int)$this->totalPrice); |
|
295 | + return DandomainFoundation\createMoney((string) $this->getOrder()->getCurrency(), (int) $this->totalPrice); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | public function getUnitPrice() |
313 | 313 | { |
314 | - return DandomainFoundation\createMoney((string)$this->getOrder()->getCurrency(), (int)$this->unitPrice); |
|
314 | + return DandomainFoundation\createMoney((string) $this->getOrder()->getCurrency(), (int) $this->unitPrice); |
|
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
@@ -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 |