Code Duplication    Length = 10-10 lines in 2 locations

Sources/CacheAPI-memcache.php 1 location

@@ 31-40 (lines=10) @@
28
	/**
29
	 * {@inheritDoc}
30
	 */
31
	public function isSupported($test = false)
32
	{
33
		global $cache_memcached;
34
35
		$supported = class_exists('memcache');
36
37
		if ($test)
38
			return $supported;
39
		return parent::isSupported() && $supported && !empty($cache_memcached);
40
	}
41
42
	/**
43
	 * {@inheritDoc}

Sources/CacheAPI-memcached.php 1 location

@@ 31-40 (lines=10) @@
28
	/**
29
	 * {@inheritDoc}
30
	 */
31
	public function isSupported($test = false)
32
	{
33
		global $cache_memcached;
34
35
		$supported = class_exists('memcached');
36
37
		if ($test)
38
			return $supported;
39
		return parent::isSupported() && $supported && !empty($cache_memcached);
40
	}
41
42
	/**
43
	 * {@inheritDoc}