Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 2 locations

@@ 349-357 (lines=9) @@
346
     *
347
     * @return callable
348
     */
349
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
350
    {
351
        return $container->protect(function (array $mapping, Configuration $config) {
352
            return new SimplifiedYamlDriver(
353
                [$mapping['path'] => $mapping['namespace']],
354
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
355
            );
356
        });
357
    }
358
359
    /**
360
     * @param Container $container
@@ 364-372 (lines=9) @@
361
     *
362
     * @return callable
363
     */
364
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
365
    {
366
        return $container->protect(function (array $mapping, Configuration $config) {
367
            return new SimplifiedXmlDriver(
368
                [$mapping['path'] => $mapping['namespace']],
369
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
370
            );
371
        });
372
    }
373
374
    /**
375
     * @param Container $container