Passed
Pull Request — master (#1)
by Alex
02:26
created
src/Factory/Hydrator/EntityHydratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $hydrator = new EntityHydrator(
56 56
             $this->getEntityManager($container, $entityManager, $requestedName),
57
-            isset($options['by_value']) ? (bool)$options['by_value'] : true,
57
+            isset($options['by_value']) ? (bool) $options['by_value'] : true,
58 58
             $inflector
59 59
         );
60 60
 
Please login to merge, or discard this patch.
src/Hydrator/Strategy/HydratorCollectionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
             }
215 215
         }
216 216
 
217
-        return array_filter($collection, static fn ($item) => null !== $item);
217
+        return array_filter($collection, static fn($item) => null !== $item);
218 218
     }
219 219
 
220 220
     /**
Please login to merge, or discard this patch.
src/Hydrator/EntityHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $metadata = $this->objectManager->getClassMetadata(ltrim($target, '\\'));
47 47
         $identifier = $metadata->getIdentifier();
48 48
 
49
-        if (! is_array($values) && ! $values instanceof \Traversable) {
49
+        if (!is_array($values) && !$values instanceof \Traversable) {
50 50
             $values = (array) $values;
51 51
         }
52 52
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
             $find = $this->getFindCriteria($identifier, $value);
70 70
 
71
-            if (! empty($find) && $found = $this->find($find, $target)) {
71
+            if (!empty($find) && $found = $this->find($find, $target)) {
72 72
                 $collection[] = is_array($value) ? $this->hydrate($value, $found) : $found;
73 73
             } else {
74 74
                 $newTarget = $this->createTargetEntity($target);
Please login to merge, or discard this patch.