Completed
Push — master ( dfe6a1...e0ceab )
by Joachim
18:20 queued 03:29
created
src/Entity/Product.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
396 396
 
397 397
     public function addManufacturer(ManufacturerInterface $manufacturer) : ProductInterface
398 398
     {
399
-        if(!$this->hasManufacturer($manufacturer)) {
399
+        if (!$this->hasManufacturer($manufacturer)) {
400 400
             $this->manufacturers->add($manufacturer);
401 401
         }
402 402
 
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
     public function addPrice(PriceInterface $price) : ProductInterface
419 419
     {
420
-        if(!$this->prices->contains($price)) {
420
+        if (!$this->prices->contains($price)) {
421 421
             $this->prices->add($price);
422 422
         }
423 423
 
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 
427 427
     public function addProductRelation(ProductRelationInterface $productRelation) : ProductInterface
428 428
     {
429
-        if(!$this->productRelations->contains($productRelation)) {
429
+        if (!$this->productRelations->contains($productRelation)) {
430 430
             $this->productRelations->add($productRelation);
431 431
         }
432 432
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 
436 436
     public function addSegment(SegmentInterface $segment) : ProductInterface
437 437
     {
438
-        if(!$this->segments->contains($segment)) {
438
+        if (!$this->segments->contains($segment)) {
439 439
             $this->segments->add($segment);
440 440
         }
441 441
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
     public function addVariant(VariantInterface $variant) : ProductInterface
446 446
     {
447
-        if(!$this->variants->contains($variant)) {
447
+        if (!$this->variants->contains($variant)) {
448 448
             $this->variants->add($variant);
449 449
         }
450 450
 
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 
454 454
     public function addVariantGroup(VariantGroupInterface $variantGroup) : ProductInterface
455 455
     {
456
-        if(!$this->variantGroups->contains($variantGroup)) {
456
+        if (!$this->variantGroups->contains($variantGroup)) {
457 457
             $this->variantGroups->add($variantGroup);
458 458
         }
459 459
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     public function getId(): int
467 467
     {
468
-        return (int)$this->id;
468
+        return (int) $this->id;
469 469
     }
470 470
 
471 471
     /**
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     public function getExternalId(): int
485 485
     {
486
-        return (int)$this->externalId;
486
+        return (int) $this->externalId;
487 487
     }
488 488
 
489 489
     /**
Please login to merge, or discard this patch.