@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | |
361 | 361 | public function addDisabledVariant(VariantInterface $variant) : ProductInterface |
362 | 362 | { |
363 | - if(!$this->disabledVariants->contains($variant)) { |
|
363 | + if (!$this->disabledVariants->contains($variant)) { |
|
364 | 364 | $this->disabledVariants->add($variant); |
365 | 365 | } |
366 | 366 | |
@@ -369,56 +369,56 @@ discard block |
||
369 | 369 | |
370 | 370 | public function addMedium(MediumInterface $medium) : ProductInterface |
371 | 371 | { |
372 | - if(!$this->media->contains($medium)) { |
|
372 | + if (!$this->media->contains($medium)) { |
|
373 | 373 | $this->media->add($medium); |
374 | 374 | } |
375 | 375 | } |
376 | 376 | |
377 | 377 | public function addCategory(CategoryInterface $category) : ProductInterface |
378 | 378 | { |
379 | - if(!$this->categories->contains($category)) { |
|
379 | + if (!$this->categories->contains($category)) { |
|
380 | 380 | $this->categories->add($category); |
381 | 381 | } |
382 | 382 | } |
383 | 383 | |
384 | 384 | public function addManufacturer(ManufacturerInterface $manufacturer) : ProductInterface |
385 | 385 | { |
386 | - if(!$this->manufacturers->contains($manufacturer)) { |
|
386 | + if (!$this->manufacturers->contains($manufacturer)) { |
|
387 | 387 | $this->manufacturers->add($manufacturer); |
388 | 388 | } |
389 | 389 | } |
390 | 390 | |
391 | 391 | public function addPrice(PriceInterface $price) : ProductInterface |
392 | 392 | { |
393 | - if(!$this->prices->contains($price)) { |
|
393 | + if (!$this->prices->contains($price)) { |
|
394 | 394 | $this->prices->add($price); |
395 | 395 | } |
396 | 396 | } |
397 | 397 | |
398 | 398 | public function addProductRelation(ProductRelationInterface $productRelation) : ProductInterface |
399 | 399 | { |
400 | - if(!$this->productRelations->contains($productRelation)) { |
|
400 | + if (!$this->productRelations->contains($productRelation)) { |
|
401 | 401 | $this->productRelations->add($productRelation); |
402 | 402 | } |
403 | 403 | } |
404 | 404 | |
405 | 405 | public function addSegment(SegmentInterface $segment) : ProductInterface |
406 | 406 | { |
407 | - if(!$this->segments->contains($segment)) { |
|
407 | + if (!$this->segments->contains($segment)) { |
|
408 | 408 | $this->segments->add($segment); |
409 | 409 | } |
410 | 410 | } |
411 | 411 | |
412 | 412 | public function addVariant(VariantInterface $variant) : ProductInterface |
413 | 413 | { |
414 | - if(!$this->variants->contains($variant)) { |
|
414 | + if (!$this->variants->contains($variant)) { |
|
415 | 415 | $this->variants->add($variant); |
416 | 416 | } |
417 | 417 | } |
418 | 418 | |
419 | 419 | public function addVariantGroup(VariantGroupInterface $variantGroup) : ProductInterface |
420 | 420 | { |
421 | - if(!$this->variantGroups->contains($variantGroup)) { |
|
421 | + if (!$this->variantGroups->contains($variantGroup)) { |
|
422 | 422 | $this->variantGroups->add($variantGroup); |
423 | 423 | } |
424 | 424 | } |
@@ -659,7 +659,7 @@ discard block |
||
659 | 659 | */ |
660 | 660 | public function getId(): int |
661 | 661 | { |
662 | - return (int)$this->id; |
|
662 | + return (int) $this->id; |
|
663 | 663 | } |
664 | 664 | |
665 | 665 | /** |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | */ |
678 | 678 | public function getExternalId(): int |
679 | 679 | { |
680 | - return (int)$this->externalId; |
|
680 | + return (int) $this->externalId; |
|
681 | 681 | } |
682 | 682 | |
683 | 683 | /** |