Code Duplication    Length = 9-9 lines in 2 locations

lib/private/Settings/SettingsManager.php 2 locations

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