@@ -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 | /** |
@@ -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 | /** |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | public function addDisabledVariant(VariantInterface $variant) : ProductInterface |
| 371 | 371 | { |
| 372 | - if(!$this->disabledVariants->contains($variant)) { |
|
| 372 | + if (!$this->disabledVariants->contains($variant)) { |
|
| 373 | 373 | $this->disabledVariants->add($variant); |
| 374 | 374 | } |
| 375 | 375 | |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | |
| 379 | 379 | public function addMedium(MediumInterface $medium) : ProductInterface |
| 380 | 380 | { |
| 381 | - if(!$this->media->contains($medium)) { |
|
| 381 | + if (!$this->media->contains($medium)) { |
|
| 382 | 382 | $this->media->add($medium); |
| 383 | 383 | } |
| 384 | 384 | |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | |
| 388 | 388 | public function addCategory(CategoryInterface $category) : ProductInterface |
| 389 | 389 | { |
| 390 | - if(!$this->categories->contains($category)) { |
|
| 390 | + if (!$this->categories->contains($category)) { |
|
| 391 | 391 | $this->categories->add($category); |
| 392 | 392 | } |
| 393 | 393 | |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | |
| 397 | 397 | public function addManufacturer(ManufacturerInterface $manufacturer) : ProductInterface |
| 398 | 398 | { |
| 399 | - if(!$this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 399 | + if (!$this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
| 400 | 400 | return $element->getExternalId() === $manufacturer->getExternalId(); |
| 401 | 401 | })) { |
| 402 | 402 | $this->manufacturers->add($manufacturer); |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | public function addPrice(PriceInterface $price) : ProductInterface |
| 414 | 414 | { |
| 415 | - if(!$this->prices->contains($price)) { |
|
| 415 | + if (!$this->prices->contains($price)) { |
|
| 416 | 416 | $this->prices->add($price); |
| 417 | 417 | } |
| 418 | 418 | |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | |
| 422 | 422 | public function addProductRelation(ProductRelationInterface $productRelation) : ProductInterface |
| 423 | 423 | { |
| 424 | - if(!$this->productRelations->contains($productRelation)) { |
|
| 424 | + if (!$this->productRelations->contains($productRelation)) { |
|
| 425 | 425 | $this->productRelations->add($productRelation); |
| 426 | 426 | } |
| 427 | 427 | |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | |
| 431 | 431 | public function addSegment(SegmentInterface $segment) : ProductInterface |
| 432 | 432 | { |
| 433 | - if(!$this->segments->contains($segment)) { |
|
| 433 | + if (!$this->segments->contains($segment)) { |
|
| 434 | 434 | $this->segments->add($segment); |
| 435 | 435 | } |
| 436 | 436 | |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | |
| 440 | 440 | public function addVariant(VariantInterface $variant) : ProductInterface |
| 441 | 441 | { |
| 442 | - if(!$this->variants->contains($variant)) { |
|
| 442 | + if (!$this->variants->contains($variant)) { |
|
| 443 | 443 | $this->variants->add($variant); |
| 444 | 444 | } |
| 445 | 445 | |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | |
| 449 | 449 | public function addVariantGroup(VariantGroupInterface $variantGroup) : ProductInterface |
| 450 | 450 | { |
| 451 | - if(!$this->variantGroups->contains($variantGroup)) { |
|
| 451 | + if (!$this->variantGroups->contains($variantGroup)) { |
|
| 452 | 452 | $this->variantGroups->add($variantGroup); |
| 453 | 453 | } |
| 454 | 454 | |
@@ -695,7 +695,7 @@ discard block |
||
| 695 | 695 | */ |
| 696 | 696 | public function getId(): int |
| 697 | 697 | { |
| 698 | - return (int)$this->id; |
|
| 698 | + return (int) $this->id; |
|
| 699 | 699 | } |
| 700 | 700 | |
| 701 | 701 | /** |
@@ -713,7 +713,7 @@ discard block |
||
| 713 | 713 | */ |
| 714 | 714 | public function getExternalId(): int |
| 715 | 715 | { |
| 716 | - return (int)$this->externalId; |
|
| 716 | + return (int) $this->externalId; |
|
| 717 | 717 | } |
| 718 | 718 | |
| 719 | 719 | /** |
@@ -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 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @inheritdoc |
| 60 | 60 | */ |
| 61 | 61 | public function addTagValue(TagValue $tagValue) { |
| 62 | - if(!$this->tagValues->contains($tagValue)) { |
|
| 62 | + if (!$this->tagValues->contains($tagValue)) { |
|
| 63 | 63 | $this->tagValues->add($tagValue); |
| 64 | 64 | $tagValue->setTag($this); |
| 65 | 65 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @inheritdoc |
| 71 | 71 | */ |
| 72 | 72 | public function clearTagValues() { |
| 73 | - foreach($this->tagValues as $tagValue) { |
|
| 73 | + foreach ($this->tagValues as $tagValue) { |
|
| 74 | 74 | $this->tagValues->removeElement($tagValue); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public function getId(): int |
| 84 | 84 | { |
| 85 | - return (int)$this->id; |
|
| 85 | + return (int) $this->id; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function getExternalId(): int |
| 102 | 102 | { |
| 103 | - return (int)$this->externalId; |
|
| 103 | + return (int) $this->externalId; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -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 | /** |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | |
| 23 | 23 | protected function getDateTimeFromJson($val = null) : ?DateTimeImmutable |
| 24 | 24 | { |
| 25 | - if(!$val) { |
|
| 25 | + if (!$val) { |
|
| 26 | 26 | return null; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - if($val instanceof DateTimeImmutable) { |
|
| 29 | + if ($val instanceof DateTimeImmutable) { |
|
| 30 | 30 | return $val; |
| 31 | 31 | } |
| 32 | 32 | |