Code Duplication    Length = 7-7 lines in 2 locations

lib/appconfig.php 2 locations

@@ 43-49 (lines=7) @@
40
	 * @param string $key
41
	 * @return string
42
	 */
43
	public function getAppValue($key) {
44
		$defaultValue = null;
45
		if (array_key_exists($key, $this->defaults)){
46
			$defaultValue = $this->defaults[$key];
47
		}
48
		return $this->config->getAppValue($this->appName, $key, $defaultValue);
49
	}
50
51
	/**
52
	 * Set a value by key
@@ 67-73 (lines=7) @@
64
	 * @param string $key
65
	 * @return string
66
	 */
67
	public function getUserValue($userId, $key) {
68
		$defaultValue = null;
69
		if (array_key_exists($key, $this->defaults)){
70
			$defaultValue = $this->defaults[$key];
71
		}
72
		return $this->config->getUserValue($userId, $this->appName, $key, $defaultValue);
73
	}
74
75
	/**
76
	 * Set a value by key for a user