Code Duplication    Length = 9-9 lines in 2 locations

src/DoctrineOrmServiceProvider.php 2 locations

@@ 365-373 (lines=9) @@
362
     *
363
     * @return callable
364
     */
365
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
366
    {
367
        return $container->protect(function (array $mapping, Configuration $config) {
368
            return new SimplifiedYamlDriver(
369
                [$mapping['path'] => $mapping['namespace']],
370
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
371
            );
372
        });
373
    }
374
375
    /**
376
     * @param Container $container
@@ 380-388 (lines=9) @@
377
     *
378
     * @return callable
379
     */
380
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
381
    {
382
        return $container->protect(function (array $mapping, Configuration $config) {
383
            return new SimplifiedXmlDriver(
384
                [$mapping['path'] => $mapping['namespace']],
385
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
386
            );
387
        });
388
    }
389
390
    /**
391
     * @param Container $container