Code Duplication    Length = 8-10 lines in 2 locations

lib/Service/ConfigService.php 2 locations

@@ 124-131 (lines=8) @@
121
	 *
122
	 * @return string
123
	 */
124
	public function getAppValue($key) {
125
		$defaultValue = null;
126
		if (array_key_exists($key, $this->defaults)) {
127
			$defaultValue = $this->defaults[$key];
128
		}
129
130
		return $this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
131
	}
132
133
	/**
134
	 * Set a value by key
@@ 163-172 (lines=10) @@
160
	 *
161
	 * @return string
162
	 */
163
	public function getUserValue($key) {
164
		$defaultValue = null;
165
		if (array_key_exists($key, $this->defaults)) {
166
			$defaultValue = $this->defaults[$key];
167
		}
168
169
		return $this->config->getUserValue(
170
			$this->userId, Application::APP_NAME, $key, $defaultValue
171
		);
172
	}
173
174
	/**
175
	 * Set a user value by key