Code Duplication    Length = 9-9 lines in 2 locations

src/ServiceProvider/DoctrineOrmServiceProvider.php 1 location

@@ 223-231 (lines=9) @@
220
     *
221
     * @return Cache
222
     */
223
    private function getCache(Container $container, $cacheDefinition): Cache
224
    {
225
        $cacheType = $cacheDefinition['type'];
226
        $cacheOptions = $cacheDefinition['options'] ?? [];
227
228
        $cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)];
229
230
        return $cacheFactory($cacheOptions);
231
    }
232
233
    /**
234
     * @param Container     $container

src/ServiceProvider/DoctrineDbalServiceProvider.php 1 location

@@ 213-221 (lines=9) @@
210
     *
211
     * @return Cache
212
     */
213
    private function getCache(Container $container, $cacheDefinition): Cache
214
    {
215
        $cacheType = $cacheDefinition['type'];
216
        $cacheOptions = $cacheDefinition['options'] ?? [];
217
218
        $cacheFactory = $container[sprintf('doctrine.dbal.db.cache_factory.%s', $cacheType)];
219
220
        return $cacheFactory($cacheOptions);
221
    }
222
223
    /**
224
     * @param Container $container