Code Duplication    Length = 7-11 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 240-246 (lines=7) @@
237
		]);
238
	}
239
240
	private function addSettings(ISettings $settings, $table) {
241
		$this->mapper->add($table, [
242
			'class' => get_class($settings),
243
			'section' => $settings->getSection(),
244
			'priority' => $settings->getPriority(),
245
		]);
246
	}
247
248
	private function updateSettings(ISettings $settings, $table) {
249
		$this->mapper->update(
@@ 248-258 (lines=11) @@
245
		]);
246
	}
247
248
	private function updateSettings(ISettings $settings, $table) {
249
		$this->mapper->update(
250
			$table,
251
			'class',
252
			get_class($settings),
253
			[
254
				'section' => $settings->getSection(),
255
				'priority' => $settings->getPriority(),
256
			]
257
		);
258
	}
259
260
	private function updateSection(ISection $section, $table) {
261
		$this->mapper->update(