Code Duplication    Length = 7-11 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 175-181 (lines=7) @@
172
		}
173
	}
174
175
	private function addAdminSection(ISection $section) {
176
		$this->add(self::TABLE_ADMIN_SECTIONS, [
177
			'id' => $section->getID(),
178
			'class' => get_class($section),
179
			'priority' => $section->getPriority(),
180
		]);
181
	}
182
183
	private function addAdminSettings(ISettings $settings) {
184
		$this->add(self::TABLE_ADMIN_SETTINGS, [
@@ 216-226 (lines=11) @@
213
		);
214
	}
215
216
	private function updateAdminSection(ISection $section) {
217
		$this->update(
218
			self::TABLE_ADMIN_SECTIONS,
219
			'class',
220
			get_class($section),
221
			[
222
				'id'       => $section->getID(),
223
				'priority' => $section->getPriority(),
224
			]
225
		);
226
	}
227
228
	private function update($table, $idCol, $id, $values) {
229
		$query = $this->dbc->getQueryBuilder();