Completed
Pull Request — master (#8664)
by Joas
54:42 queued 34:40
created
settings/Controller/CommonSettingsTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
 		];
57 57
 	}
58 58
 
59
+	/**
60
+	 * @param string $type
61
+	 */
59 62
 	protected function formatSections($sections, $currentSection, $type, $currentType) {
60 63
 		$templateParameters = [];
61 64
 		/** @var \OCP\Settings\ISection[] $prioritizedSections */
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
 		return $templateParameters;
90 93
 	}
91 94
 
95
+	/**
96
+	 * @param string $currentSections
97
+	 */
92 98
 	protected function formatPersonalSections($currentType, $currentSections) {
93 99
 		$sections = $this->settingsManager->getPersonalSections();
94 100
 		$templateParameters = $this->formatSections($sections, $currentSections, 'personal', $currentType);
@@ -96,6 +102,9 @@  discard block
 block discarded – undo
96 102
 		return $templateParameters;
97 103
 	}
98 104
 
105
+	/**
106
+	 * @param string $currentSections
107
+	 */
99 108
 	protected function formatAdminSections($currentType, $currentSections) {
100 109
 		$sections = $this->settingsManager->getAdminSections();
101 110
 		$templateParameters = $this->formatSections($sections, $currentSections, 'admin', $currentType);
@@ -119,6 +128,10 @@  discard block
 block discarded – undo
119 128
 		return ['content' => $html];
120 129
 	}
121 130
 
131
+	/**
132
+	 * @param string $type
133
+	 * @param string $section
134
+	 */
122 135
 	private function getIndexResponse($type, $section) {
123 136
 		$this->navigationManager->setActiveEntry('settings');
124 137
 		$templateParams = [];
Please login to merge, or discard this patch.