Code Duplication    Length = 4-4 lines in 2 locations

Mapping/EntityMetadata.php 2 locations

@@ 241-244 (lines=4) @@
238
        $this->reflClass    = $reflService->getClass($this->name);
239
        $this->instantiator = $this->instantiator ?: new Instantiator();
240
241
        foreach ($this->fields as $field => $mapping) {
242
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
243
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
244
        }
245
246
        foreach ($this->associations as $field => $mapping) {
247
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
@@ 246-249 (lines=4) @@
243
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
244
        }
245
246
        foreach ($this->associations as $field => $mapping) {
247
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
248
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
249
        }
250
    }
251
252
    /** {@inheritdoc} */