Passed
Push — master ( e62da3...60022f )
by Alex
02:34
created
src/Hydrator/EntityHydrator.php 1 patch
Spacing   +5 added lines, -5 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);
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
                 continue;
130 130
             }
131 131
 
132
-            $getter = 'get' . ucfirst($fieldName);
133
-            $isser = 'is' . ucfirst($fieldName);
132
+            $getter = 'get'.ucfirst($fieldName);
133
+            $isser = 'is'.ucfirst($fieldName);
134 134
 
135 135
             $dataFieldName = $this->computeExtractFieldName($fieldName);
136 136
             if (in_array($getter, $methods, true)) {
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $find = [];
264 264
         foreach ($identifier as $field) {
265 265
             if (is_object($value)) {
266
-                $getter = 'get' . ucfirst($field);
266
+                $getter = 'get'.ucfirst($field);
267 267
 
268 268
                 if (is_callable([$value, $getter])) {
269 269
                     $find[$field] = $value->$getter();
Please login to merge, or discard this patch.