Code Duplication    Length = 9-9 lines in 2 locations

src/Cache/ArrayCache.php 1 location

@@ 109-117 (lines=9) @@
106
     *
107
     * @throws InvalidArgumentException Thrown if the $key string is not a legal value.
108
     */
109
    public function getMultiple($keys, $default = null)
110
    {
111
        $items = [];
112
        foreach ($keys as $key) {
113
            $items[$key] = $this->get($key, $default);
114
        }
115
116
        return $items;
117
    }
118
119
    /**
120
     * Persists a set of key => value pairs in the cache, with an optional TTL.

src/Cache/MongoCache.php 1 location

@@ 131-139 (lines=9) @@
128
     *
129
     * @throws InvalidArgumentException Thrown if the $key string is not a legal value.
130
     */
131
    public function getMultiple($keys, $default = null)
132
    {
133
        $items = [];
134
        foreach ($keys as $key) {
135
            $items[$key] = $this->get($key, $default);
136
        }
137
138
        return $items;
139
    }
140
141
    /**
142
     * Persists a set of key => value pairs in the cache, with an optional TTL.