Code Duplication    Length = 11-11 lines in 2 locations

apps/provisioning_api/lib/Controller/AppConfigController.php 2 locations

@@ 103-113 (lines=11) @@
100
	 * @param string $value
101
	 * @return DataResponse
102
	 */
103
	public function setValue($app, $key, $value) {
104
		try {
105
			$this->verifyAppId($app);
106
			$this->verifyConfigKey($app, $key);
107
		} catch (\InvalidArgumentException $e) {
108
			return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN);
109
		}
110
111
		$this->config->setAppValue($app, $key, $value);
112
		return new DataResponse();
113
	}
114
115
	/**
116
	 * @PasswordConfirmationRequired
@@ 121-131 (lines=11) @@
118
	 * @param string $key
119
	 * @return DataResponse
120
	 */
121
	public function deleteKey($app, $key) {
122
		try {
123
			$this->verifyAppId($app);
124
			$this->verifyConfigKey($app, $key);
125
		} catch (\InvalidArgumentException $e) {
126
			return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN);
127
		}
128
129
		$this->config->deleteAppValue($app, $key);
130
		return new DataResponse();
131
	}
132
133
	/**
134
	 * @param string $app