Code Duplication    Length = 9-9 lines in 2 locations

src/DoctrineOrmServiceProvider.php 2 locations

@@ 364-372 (lines=9) @@
361
     *
362
     * @return callable
363
     */
364
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
365
    {
366
        return $container->protect(function (array $mapping, Configuration $config) {
367
            return new SimplifiedYamlDriver(
368
                [$mapping['path'] => $mapping['namespace']],
369
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
370
            );
371
        });
372
    }
373
374
    /**
375
     * @param Container $container
@@ 391-399 (lines=9) @@
388
     *
389
     * @return callable
390
     */
391
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
392
    {
393
        return $container->protect(function (array $mapping, Configuration $config) {
394
            return new SimplifiedXmlDriver(
395
                [$mapping['path'] => $mapping['namespace']],
396
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
397
            );
398
        });
399
    }
400
401
    /**
402
     * @param Container $container