Completed
Push — master ( c97749...e35fd1 )
by Joachim
12:56
created
src/Entity/Product.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
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,7 +369,7 @@  discard block
 block discarded – undo
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
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
     public function addCategory(CategoryInterface $category) : ProductInterface
380 380
     {
381
-        if(!$this->categories->contains($category)) {
381
+        if (!$this->categories->contains($category)) {
382 382
             $this->categories->add($category);
383 383
         }
384 384
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
     public function addManufacturer(ManufacturerInterface $manufacturer) : ProductInterface
389 389
     {
390
-        if(!$this->manufacturers->contains($manufacturer)) {
390
+        if (!$this->manufacturers->contains($manufacturer)) {
391 391
             $this->manufacturers->add($manufacturer);
392 392
         }
393 393
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 
397 397
     public function addPrice(PriceInterface $price) : ProductInterface
398 398
     {
399
-        if(!$this->prices->contains($price)) {
399
+        if (!$this->prices->contains($price)) {
400 400
             $this->prices->add($price);
401 401
         }
402 402
 
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 
406 406
     public function addProductRelation(ProductRelationInterface $productRelation) : ProductInterface
407 407
     {
408
-        if(!$this->productRelations->contains($productRelation)) {
408
+        if (!$this->productRelations->contains($productRelation)) {
409 409
             $this->productRelations->add($productRelation);
410 410
         }
411 411
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 
415 415
     public function addSegment(SegmentInterface $segment) : ProductInterface
416 416
     {
417
-        if(!$this->segments->contains($segment)) {
417
+        if (!$this->segments->contains($segment)) {
418 418
             $this->segments->add($segment);
419 419
         }
420 420
 
@@ -423,14 +423,14 @@  discard block
 block discarded – undo
423 423
 
424 424
     public function addVariant(VariantInterface $variant) : ProductInterface
425 425
     {
426
-        if(!$this->variants->contains($variant)) {
426
+        if (!$this->variants->contains($variant)) {
427 427
             $this->variants->add($variant);
428 428
         }
429 429
     }
430 430
 
431 431
     public function addVariantGroup(VariantGroupInterface $variantGroup) : ProductInterface
432 432
     {
433
-        if(!$this->variantGroups->contains($variantGroup)) {
433
+        if (!$this->variantGroups->contains($variantGroup)) {
434 434
             $this->variantGroups->add($variantGroup);
435 435
         }
436 436
 
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
      */
678 678
     public function getId(): int
679 679
     {
680
-        return (int)$this->id;
680
+        return (int) $this->id;
681 681
     }
682 682
 
683 683
     /**
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
      */
696 696
     public function getExternalId(): int
697 697
     {
698
-        return (int)$this->externalId;
698
+        return (int) $this->externalId;
699 699
     }
700 700
 
701 701
     /**
Please login to merge, or discard this patch.