Code Duplication    Length = 9-10 lines in 2 locations

lib/Doctrine/ORM/Mapping/Driver/NewAnnotationDriver.php 1 location

@@ 263-272 (lines=10) @@
260
        }
261
262
        // Evaluate @SqlResultSetMappings annotation
263
        if (isset($classAnnotations[Annotation\SqlResultSetMappings::class])) {
264
            /** @var Annotation\SqlResultSetMappings $sqlResultSetMappingsAnnot */
265
            $sqlResultSetMappingsAnnot = $classAnnotations[Annotation\SqlResultSetMappings::class];
266
267
            foreach ($sqlResultSetMappingsAnnot->value as $resultSetMapping) {
268
                $sqlResultSetMapping = $this->convertSqlResultSetMapping($resultSetMapping);
269
270
                $classMetadata->addSqlResultSetMapping($sqlResultSetMapping);
271
            }
272
        }
273
274
        // Evaluate @NamedQueries annotation
275
        if (isset($classAnnotations[Annotation\NamedQueries::class])) {

lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 location

@@ 303-311 (lines=9) @@
300
        }
301
302
        // Evaluate SqlResultSetMappings annotation
303
        if (isset($classAnnotations[Annotation\SqlResultSetMappings::class])) {
304
            $sqlResultSetMappingsAnnot = $classAnnotations[Annotation\SqlResultSetMappings::class];
305
306
            foreach ($sqlResultSetMappingsAnnot->value as $resultSetMapping) {
307
                $sqlResultSetMapping = $this->convertSqlResultSetMapping($resultSetMapping);
308
309
                $classMetadata->addSqlResultSetMapping($sqlResultSetMapping);
310
            }
311
        }
312
313
        // Evaluate NamedQueries annotation
314
        if (isset($classAnnotations[Annotation\NamedQueries::class])) {