Code Duplication    Length = 3-3 lines in 3 locations

src/FlintRedisCacheFactory.php 3 locations

@@ 56-58 (lines=3) @@
53
54
        $instance = false;
55
56
        if ($strategy && $options && isset(self::$cachedInstances[$fullKey])) {
57
            $instance = self::$cachedInstances[$fullKey];
58
        }
59
60
        if ($strategy && !$options && isset(self::$cachedInstances[$key])) {
61
            $instance = self::$cachedInstances[$key];
@@ 60-62 (lines=3) @@
57
            $instance = self::$cachedInstances[$fullKey];
58
        }
59
60
        if ($strategy && !$options && isset(self::$cachedInstances[$key])) {
61
            $instance = self::$cachedInstances[$key];
62
        }
63
64
        if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) {
65
            $instance = self::$cachedInstances[$realm];
@@ 64-66 (lines=3) @@
61
            $instance = self::$cachedInstances[$key];
62
        }
63
64
        if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) {
65
            $instance = self::$cachedInstances[$realm];
66
        }
67
68
        return $instance;
69
    }