Passed
Push — master ( d3ba1f...57c21f )
by Joachim
05:14
created
src/Entity/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@
 block discarded – undo
428 428
             $orderLine = $orderLine->getExternalId();
429 429
         }
430 430
 
431
-        return $this->orderLines->exists(function ($key, OrderLineInterface $element) use ($orderLine) {
431
+        return $this->orderLines->exists(function($key, OrderLineInterface $element) use ($orderLine) {
432 432
             return $element->getExternalId() === $orderLine;
433 433
         });
434 434
     }
Please login to merge, or discard this patch.
src/Entity/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
             $category = $category->getExternalId();
207 207
         }
208 208
 
209
-        return $this->parentCategories->exists(function ($key, CategoryInterface $element) use ($category) {
209
+        return $this->parentCategories->exists(function($key, CategoryInterface $element) use ($category) {
210 210
             return $element->getExternalId() === $category;
211 211
         });
212 212
     }
Please login to merge, or discard this patch.
src/Entity/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             $tagValue = $tagValue->getExternalId();
80 80
         }
81 81
 
82
-        return $this->tagValues->exists(function ($key, TagValueInterface $element) use ($tagValue) {
82
+        return $this->tagValues->exists(function($key, TagValueInterface $element) use ($tagValue) {
83 83
             return $element->getExternalId() === $tagValue;
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
src/Repository/AbstractRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         // reset options
104 104
         $this->options = [];
105 105
 
106
-        if($options['iterate']) {
106
+        if ($options['iterate']) {
107 107
             return $this->generator($qb, $options);
108 108
         } else {
109 109
             return $qb->getQuery()->getResult();
Please login to merge, or discard this patch.
src/Entity/OrderLine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Loevgaard\DandomainFoundation\Entity;
6 6
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function getVatPct() : float
368 368
     {
369
-        return (float)$this->vatPct;
369
+        return (float) $this->vatPct;
370 370
     }
371 371
 
372 372
     /**
Please login to merge, or discard this patch.
src/Entity/Product.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function updateCategories(array $categories): void
486 486
     {
487
-        if(empty($categories)) {
487
+        if (empty($categories)) {
488 488
             $this->clearCategories();
489 489
             return;
490 490
         }
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     public function findCategory(CategoryInterface $searchCategory): ?CategoryInterface
532 532
     {
533 533
         foreach ($this->categories as $category) {
534
-            if($category->getExternalId() === $searchCategory->getExternalId()) {
534
+            if ($category->getExternalId() === $searchCategory->getExternalId()) {
535 535
                 return $category;
536 536
             }
537 537
         }
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
     public function hasManufacturer(ManufacturerInterface $manufacturer): bool
560 560
     {
561
-        return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) {
561
+        return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) {
562 562
             return $element->getExternalId() === $manufacturer->getExternalId();
563 563
         });
564 564
     }
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
             $variantGroup = $variantGroup->getExternalId();
597 597
         }
598 598
 
599
-        return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) {
599
+        return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) {
600 600
             return $element->getExternalId() === $variantGroup;
601 601
         });
602 602
     }
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
             $product = $product->getExternalId();
738 738
         }
739 739
 
740
-        return $this->children->exists(function ($key, ProductInterface $element) use ($product) {
740
+        return $this->children->exists(function($key, ProductInterface $element) use ($product) {
741 741
             return $element->getExternalId() === $product;
742 742
         });
743 743
     }
Please login to merge, or discard this patch.