Code Duplication    Length = 4-4 lines in 2 locations

Mapping/EntityMetadata.php 2 locations

@@ 249-252 (lines=4) @@
246
        $this->reflClass    = $reflService->getClass($this->name);
247
        $this->instantiator = $this->instantiator ?: new Instantiator();
248
249
        foreach ($this->fields as $field => $mapping) {
250
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
251
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
252
        }
253
254
        foreach ($this->associations as $field => $mapping) {
255
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
@@ 254-257 (lines=4) @@
251
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
252
        }
253
254
        foreach ($this->associations as $field => $mapping) {
255
            $class                    = array_key_exists('declared', $mapping) ? $mapping['declared'] : $this->name;
256
            $this->reflFields[$field] = $reflService->getAccessibleProperty($class, $field);
257
        }
258
    }
259
260
    /** {@inheritdoc} */