Code Duplication    Length = 6-6 lines in 3 locations

src/Comodojo/Cache/Providers/Apc.php 1 location

@@ 225-230 (lines=6) @@
222
     */
223
    public function status() {
224
225
        if ( !$this->isEnabled() ) return array(
226
            "provider"  => "apc",
227
            "enabled"   => false,
228
            "objects"   => null,
229
            "options"   => array()
230
        );
231
232
        $stats = self::$is_apcu ? apcu_cache_info(true) : apc_cache_info("user", true);
233

src/Comodojo/Cache/Providers/Memcached.php 1 location

@@ 244-249 (lines=6) @@
241
     */
242
    public function status() {
243
244
        if ( !$this->isEnabled() ) return array(
245
            "provider"  => "memcached",
246
            "enabled"   => false,
247
            "objects"   => null,
248
            "options"   => array()
249
        );
250
251
        $stats = $this->instance->getStats();
252

src/Comodojo/Cache/Providers/PhpRedis.php 1 location

@@ 295-300 (lines=6) @@
292
293
        $enabled = $this->isEnabled();
294
295
        if ( !$enabled ) return array(
296
            "provider"  => "phpredis",
297
            "enabled"   => $enabled,
298
            "objects"   => null,
299
            "options"   => array()
300
        );
301
302
        $objects = 0;
303