Code Duplication    Length = 7-11 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 114-120 (lines=7) @@
111
		}
112
	}
113
114
	private function addAdminSection(ISection $section) {
115
		$this->add(self::TABLE_ADMIN_SECTIONS, [
116
			'id' => $section->getID(),
117
			'class' => get_class($section),
118
			'priority' => $section->getPriority(),
119
		]);
120
	}
121
122
	private function addAdminSettings(ISettings $settings) {
123
		$this->add(self::TABLE_ADMIN_SETTINGS, [
@@ 151-161 (lines=11) @@
148
		);
149
	}
150
151
	private function updateAdminSection(ISection $section) {
152
		$this->update(
153
			self::TABLE_ADMIN_SECTIONS,
154
			'class',
155
			get_class($section),
156
			[
157
				'id'       => $section->getID(),
158
				'priority' => $section->getPriority(),
159
			]
160
		);
161
	}
162
163
	private function update($table, $idCol, $id, $values) {
164
		$query = $this->dbc->getQueryBuilder();