Code Duplication    Length = 3-3 lines in 2 locations

src/FlintRedisCacheFactory.php 2 locations

@@ 31-33 (lines=3) @@
28
            return self::$cachedInstances[$fullKey];
29
        }
30
31
        if ($strategy && !$options && isset(self::$cachedInstances[$key])) {
32
            return self::$cachedInstances[$key];
33
        }
34
35
        if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) {
36
            return self::$cachedInstances[$realm];
@@ 35-37 (lines=3) @@
32
            return self::$cachedInstances[$key];
33
        }
34
35
        if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) {
36
            return self::$cachedInstances[$realm];
37
        }
38
39
        // No instance available so far... Lets create one with default values
40
        $strategy = $strategy ? $strategy : self::STRATEGY_REDIS;