Code Duplication    Length = 9-9 lines in 2 locations

src/DoctrineOrmServiceProvider.php 2 locations

@@ 323-331 (lines=9) @@
320
     *
321
     * @return callable
322
     */
323
    private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
324
    {
325
        return $container->protect(function (array $mapping, Configuration $config) {
326
            return new SimplifiedYamlDriver(
327
                [$mapping['path'] => $mapping['namespace']],
328
                $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
329
            );
330
        });
331
    }
332
333
    /**
334
     * @param Container $container
@@ 350-358 (lines=9) @@
347
     *
348
     * @return callable
349
     */
350
    private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
351
    {
352
        return $container->protect(function (array $mapping, Configuration $config) {
353
            return new SimplifiedXmlDriver(
354
                [$mapping['path'] => $mapping['namespace']],
355
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
356
            );
357
        });
358
    }
359
360
    /**
361
     * @param Container $container