Code Duplication    Length = 9-9 lines in 2 locations

src/DoctrineOrmServiceProvider.php 2 locations

@@ 339-347 (lines=9) @@
336
     *
337
     * @return callable
338
     */
339
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
340
    {
341
        return $container->protect(function (array $mapping, Configuration $config) {
342
            return new SimplifiedYamlDriver(
343
                [$mapping['path'] => $mapping['namespace']],
344
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
345
            );
346
        });
347
    }
348
349
    /**
350
     * @param Container $container
@@ 354-362 (lines=9) @@
351
     *
352
     * @return callable
353
     */
354
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
355
    {
356
        return $container->protect(function (array $mapping, Configuration $config) {
357
            return new SimplifiedXmlDriver(
358
                [$mapping['path'] => $mapping['namespace']],
359
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
360
            );
361
        });
362
    }
363
364
    /**
365
     * @param Container $container