Completed
Pull Request — master (#4890)
by Blizzz
18:42
created
lib/private/Settings/Manager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -265,6 +265,9 @@  discard block
 block discarded – undo
265 265
 		return $this->mapper->has($table, $className);
266 266
 	}
267 267
 
268
+	/**
269
+	 * @param string $type
270
+	 */
268 271
 	private function setupSettingsEntry($settingsClassName, $type) {
269 272
 		if (!class_exists($settingsClassName)) {
270 273
 			$this->log->debug('Could not find ' . $type . ' section class ' . $settingsClassName);
@@ -294,6 +297,9 @@  discard block
 block discarded – undo
294 297
 		}
295 298
 	}
296 299
 
300
+	/**
301
+	 * @param string $type
302
+	 */
297 303
 	private function getSectionTableForType($type) {
298 304
 		if($type === 'admin') {
299 305
 			return Mapper::TABLE_ADMIN_SECTIONS;
Please login to merge, or discard this patch.
settings/Controller/CommonSettingsTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
 		];
52 52
 	}
53 53
 
54
+	/**
55
+	 * @param string $type
56
+	 */
54 57
 	protected function formatSections($sections, $currentSection, $type, $currentType) {
55 58
 		$templateParameters = [];
56 59
 		/** @var \OCP\Settings\ISection[] $prioritizedSections */
@@ -84,6 +87,9 @@  discard block
 block discarded – undo
84 87
 		return $templateParameters;
85 88
 	}
86 89
 
90
+	/**
91
+	 * @param string $currentSections
92
+	 */
87 93
 	protected function formatPersonalSections($currentType, $currentSections) {
88 94
 		$sections = $this->settingsManager->getPersonalSections();
89 95
 		$templateParameters = $this->formatSections($sections, $currentSections, 'personal', $currentType);
@@ -91,6 +97,9 @@  discard block
 block discarded – undo
91 97
 		return $templateParameters;
92 98
 	}
93 99
 
100
+	/**
101
+	 * @param string $currentSections
102
+	 */
94 103
 	protected function formatAdminSections($currentType, $currentSections) {
95 104
 		$sections = $this->settingsManager->getAdminSections();
96 105
 		$templateParameters = $this->formatSections($sections, $currentSections, 'admin', $currentType);
@@ -114,6 +123,10 @@  discard block
 block discarded – undo
114 123
 		return ['content' => $html];
115 124
 	}
116 125
 
126
+	/**
127
+	 * @param string $type
128
+	 * @param string $section
129
+	 */
117 130
 	private function getIndexResponse($type, $section) {
118 131
 		$templateParams = [];
119 132
 		$templateParams = array_merge($templateParams, $this->getNavigationParameters($type, $section));
Please login to merge, or discard this patch.