Code Duplication    Length = 16-16 lines in 3 locations

src/Comodojo/SimpleCache/Providers/AbstractEnhancedProvider.php 1 location

@@ 275-290 (lines=16) @@
272
273
    abstract public function getStats();
274
275
    public function clearNamespace() {
276
277
        try {
278
279
            $data = $this->driver->clear($this->getNamespace());
280
281
        } catch (Exception $e) {
282
283
            $this->setState(self::CACHE_ERROR, $e->getMessage());
284
            $data = false;
285
286
        }
287
288
        return $data;
289
290
    }
291
292
    public function test() {
293

src/Comodojo/Cache/Providers/AbstractEnhancedProvider.php 2 locations

@@ 144-159 (lines=16) @@
141
    /**
142
     * {@inheritdoc}
143
     */
144
    public function clearNamespace() {
145
146
        try {
147
148
            $data = $this->driver->clear($this->getNamespace());
149
150
        } catch (Exception $e) {
151
152
            $this->setState(self::CACHE_ERROR, $e->getMessage());
153
            $data = false;
154
155
        }
156
157
        return $data;
158
159
    }
160
161
    /**
162
     * {@inheritdoc}
@@ 270-285 (lines=16) @@
267
    /**
268
     * {@inheritdoc}
269
     */
270
    public function deleteItems(array $keys) {
271
272
        try {
273
274
            $data = $this->driver->deleteMultiple($keys, $this->getNamespace());
275
276
        } catch (Exception $e) {
277
278
            $this->setState(self::CACHE_ERROR, $e->getMessage());
279
            $data = false;
280
281
        }
282
283
        return $data;
284
285
    }
286
287
    /**
288
     * {@inheritdoc}