Code Duplication    Length = 16-16 lines in 2 locations

apps/testing/lib/Config.php 2 locations

@@ 74-89 (lines=16) @@
71
	/**
72
	 * @return \OC_OCS_Result
73
	 */
74
	public function setAppValues() {
75
		$values = $this->request->getParam('values');
76
77
		if (is_array($values)) {
78
			foreach ($values as $appEntry) {
79
				if (is_array($appEntry)) {
80
					$this->config->setAppValue(
81
						$appEntry['appid'],
82
						$appEntry['configkey'],
83
						$appEntry['value']);
84
				}
85
			}
86
		}
87
88
		return new \OC_OCS_Result();
89
	}
90
91
	/**
92
	 * @return \OC_OCS_Result
@@ 94-109 (lines=16) @@
91
	/**
92
	 * @return \OC_OCS_Result
93
	 */
94
	public function deleteAppValues() {
95
		$values = $this->request->getParam('values');
96
97
		if (is_array($values)) {
98
			foreach ($values as $appEntry) {
99
				if (is_array($appEntry)) {
100
					$this->config->deleteAppValue(
101
						$appEntry['appid'],
102
						$appEntry['configkey']
103
					);
104
				}
105
			}
106
		}
107
108
		return new \OC_OCS_Result();
109
	}
110
}
111