Code Duplication    Length = 7-11 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 183-189 (lines=7) @@
180
		]);
181
	}
182
183
	private function addAdminSettings(ISettings $settings) {
184
		$this->add(self::TABLE_ADMIN_SETTINGS, [
185
			'class' => get_class($settings),
186
			'section' => $settings->getSection(),
187
			'priority' => $settings->getPriority(),
188
		]);
189
	}
190
191
	/**
192
	 * @param string $table
@@ 204-214 (lines=11) @@
201
		$query->execute();
202
	}
203
204
	private function updateAdminSettings(ISettings $settings) {
205
		$this->update(
206
			self::TABLE_ADMIN_SETTINGS,
207
			'class',
208
			get_class($settings),
209
			[
210
				'section' => $settings->getSection(),
211
				'priority' => $settings->getPriority(),
212
			]
213
		);
214
	}
215
216
	private function updateAdminSection(ISection $section) {
217
		$this->update(