@@ -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 | /** |
@@ -377,11 +377,11 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true) |
| 379 | 379 | { |
| 380 | - if($data['created']) { |
|
| 380 | + if ($data['created']) { |
|
| 381 | 381 | $data['created'] = $this->getDateTimeFromJson($data['created']); |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | - if($data['updated']) { |
|
| 384 | + if ($data['updated']) { |
|
| 385 | 385 | $data['updated'] = $this->getDateTimeFromJson($data['updated']); |
| 386 | 386 | } |
| 387 | 387 | |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | |
| 436 | 436 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
| 437 | 437 | { |
| 438 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 438 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 439 | 439 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 440 | 440 | }); |
| 441 | 441 | } |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | $variantGroup = $variantGroup->getExternalId(); |
| 461 | 461 | } |
| 462 | 462 | |
| 463 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 463 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
| 464 | 464 | return $element->getExternalId() === $variantGroup; |
| 465 | 465 | }); |
| 466 | 466 | } |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | */ |
| 510 | 510 | public function getId(): int |
| 511 | 511 | { |
| 512 | - return (int)$this->id; |
|
| 512 | + return (int) $this->id; |
|
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | /** |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | */ |
| 528 | 528 | public function getExternalId(): int |
| 529 | 529 | { |
| 530 | - return (int)$this->externalId; |
|
| 530 | + return (int) $this->externalId; |
|
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | /** |
@@ -296,11 +296,11 @@ |
||
| 296 | 296 | |
| 297 | 297 | public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true) |
| 298 | 298 | { |
| 299 | - if($data['expectedDeliveryTime']) { |
|
| 299 | + if ($data['expectedDeliveryTime']) { |
|
| 300 | 300 | $data['expectedDeliveryTime'] = $this->getDateTimeFromJson($data['expectedDeliveryTime']); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - if($data['expectedDeliveryTimeNotInStock']) { |
|
| 303 | + if ($data['expectedDeliveryTimeNotInStock']) { |
|
| 304 | 304 | $data['expectedDeliveryTimeNotInStock'] = $this->getDateTimeFromJson($data['expectedDeliveryTimeNotInStock']); |
| 305 | 305 | } |
| 306 | 306 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | public function addTagValue(TagValue $tagValue) : TagInterface |
| 65 | 65 | { |
| 66 | - if(!$this->hasTagValue($tagValue)) { |
|
| 66 | + if (!$this->hasTagValue($tagValue)) { |
|
| 67 | 67 | $this->tagValues->add($tagValue); |
| 68 | 68 | $tagValue->setTag($this); |
| 69 | 69 | } |
@@ -73,11 +73,11 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | public function hasTagValue($tagValue) : bool |
| 75 | 75 | { |
| 76 | - if($tagValue instanceof TagValueInterface) { |
|
| 76 | + if ($tagValue instanceof TagValueInterface) { |
|
| 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 | /** |