Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 2 locations

@@ 385-393 (lines=9) @@
382
     *
383
     * @return callable
384
     */
385
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
386
    {
387
        return $container->protect(function (array $mapping, Configuration $config) {
388
            return new SimplifiedYamlDriver(
389
                [$mapping['path'] => $mapping['namespace']],
390
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
391
            );
392
        });
393
    }
394
395
    /**
396
     * @param Container $container
@@ 400-408 (lines=9) @@
397
     *
398
     * @return callable
399
     */
400
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
401
    {
402
        return $container->protect(function (array $mapping, Configuration $config) {
403
            return new SimplifiedXmlDriver(
404
                [$mapping['path'] => $mapping['namespace']],
405
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
406
            );
407
        });
408
    }
409
410
    /**
411
     * @param Container $container