Code Duplication    Length = 12-12 lines in 2 locations

src/Cache/Cache.php 2 locations

@@ 45-56 (lines=12) @@
42
     *
43
     * @return mixed
44
     */
45
    public function get($key, $default = null)
46
    {
47
        try {
48
            if (is_array($key) || $key instanceof \Traversable) {
49
                return $this->cacheAdapter->getMultiple($key, $default);
50
            }
51
52
            return $this->cacheAdapter->get($key, $default);
53
        } catch (CacheException $e) {
54
            throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
55
        }
56
    }
57
58
    /**
59
     * @param $key
@@ 94-105 (lines=12) @@
91
     *
92
     * @return bool
93
     */
94
    public function delete($key)
95
    {
96
        try {
97
            if (is_array($key) || $key instanceof \Traversable) {
98
                return $this->cacheAdapter->deleteMultiple($key);
99
            }
100
101
            return $this->cacheAdapter->delete($key);
102
        } catch (CacheException $e) {
103
            throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
104
        }
105
    }
106
107
    /**
108
     * @return bool