Code Duplication    Length = 7-11 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 122-128 (lines=7) @@
119
		]);
120
	}
121
122
	private function addAdminSettings(ISettings $settings) {
123
		$this->add(self::TABLE_ADMIN_SETTINGS, [
124
			'class' => get_class($settings),
125
			'section' => $settings->getSection(),
126
			'priority' => $settings->getPriority(),
127
		]);
128
	}
129
130
	private function add($table, $values) {
131
		$query = $this->dbc->getQueryBuilder();
@@ 139-149 (lines=11) @@
136
		$query->execute();
137
	}
138
139
	private function updateAdminSettings(ISettings $settings) {
140
		$this->update(
141
			self::TABLE_ADMIN_SETTINGS,
142
			'class',
143
			get_class($settings),
144
			[
145
				'section' => $settings->getSection(),
146
				'priority' => $settings->getPriority(),
147
			]
148
		);
149
	}
150
151
	private function updateAdminSection(ISection $section) {
152
		$this->update(