Code Duplication    Length = 9-9 lines in 2 locations

lib/private/Settings/SettingsManager.php 2 locations

@@ 164-172 (lines=9) @@
161
	 * @param string $sectionID
162
	 * @return array of ISection
163
	 */
164
	public function getPersonalPanels($sectionID) {
165
		// Trigger a load of all personal panels to discover sections
166
		$this->loadPanels('personal');
167
		if(isset($this->panels['personal'][$sectionID])) {
168
			return $this->panels['personal'][$sectionID];
169
		} else {
170
			return [];
171
		}
172
	}
173
174
	/**
175
	 * Returns ISettings for the admin settings in the given section
@@ 179-187 (lines=9) @@
176
	 * @param string $sectionID
177
	 * @return array of ISection
178
	 */
179
	public function getAdminPanels($sectionID) {
180
		// Trigger a load of all admin panels to discover sections
181
		$this->loadPanels('admin');
182
		if(isset($this->panels['admin'][$sectionID])) {
183
			return $this->panels['admin'][$sectionID];
184
		} else {
185
			return [];
186
		}
187
	}
188
189
	/**
190
	 * Returns the default set of ISections used in core