Code Duplication    Length = 8-10 lines in 2 locations

lib/Service/ConfigService.php 2 locations

@@ 122-129 (lines=8) @@
119
	 *
120
	 * @return string
121
	 */
122
	public function getAppValue($key) {
123
		$defaultValue = null;
124
		if (array_key_exists($key, $this->defaults)) {
125
			$defaultValue = $this->defaults[$key];
126
		}
127
128
		return $this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
129
	}
130
131
	/**
132
	 * Set a value by key
@@ 174-183 (lines=10) @@
171
	 *
172
	 * @return string
173
	 */
174
	public function getUserValue($key) {
175
		$defaultValue = null;
176
		if (array_key_exists($key, $this->defaults)) {
177
			$defaultValue = $this->defaults[$key];
178
		}
179
180
		return $this->config->getUserValue(
181
			$this->userId, Application::APP_NAME, $key, $defaultValue
182
		);
183
	}
184
185
	/**
186
	 * Set a user value by key