Code Duplication    Length = 8-9 lines in 2 locations

Sources/CacheAPI-smf.php 1 location

@@ 42-49 (lines=8) @@
39
	/**
40
	 * {@inheritDoc}
41
	 */
42
	public function isSupported($test = false)
43
	{
44
		$supported = is_writable($this->cachedir);
45
46
		if ($test)
47
			return $supported;
48
		return parent::isSupported() && $supported;
49
	}
50
51
	/**
52
	 * {@inheritDoc}

Sources/CacheAPI-sqlite.php 1 location

@@ 61-69 (lines=9) @@
58
	/**
59
	 * {@inheritDoc}
60
	 */
61
	public function isSupported($test = false)
62
	{
63
		$supported = class_exists("SQLite3") && is_writable($this->cachedir);
64
65
		if ($test)
66
		{
67
			return $supported;
68
		}
69
70
		return parent::isSupported() && $supported;
71
	}
72