@@ -56,6 +56,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 = []; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @throws \Sabre\DAV\Exception\Forbidden |
50 | - * @return bool |
|
50 | + * @return false|null |
|
51 | 51 | */ |
52 | 52 | public function handleAnonymousOptions(RequestInterface $request, ResponseInterface $response) { |
53 | 53 | if ($request->getMethod() === 'OPTIONS' && $request->getPath() === '') { |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * where a high number of (session) tokens is generated |
144 | 144 | * |
145 | 145 | * @param IUser $user |
146 | - * @return IToken[] |
|
146 | + * @return DefaultToken[] |
|
147 | 147 | */ |
148 | 148 | public function getTokenByUser(IUser $user) { |
149 | 149 | return $this->mapper->getTokenByUser($user); |
@@ -970,7 +970,7 @@ discard block |
||
970 | 970 | * @param string $app |
971 | 971 | * @param \OCP\IConfig $config |
972 | 972 | * @param \OCP\IL10N $l |
973 | - * @return bool |
|
973 | + * @return string |
|
974 | 974 | * |
975 | 975 | * @throws Exception if app is not compatible with this version of ownCloud |
976 | 976 | * @throws Exception if no app-name was specified |
@@ -1156,6 +1156,11 @@ discard block |
||
1156 | 1156 | } |
1157 | 1157 | } |
1158 | 1158 | |
1159 | + /** |
|
1160 | + * @param string $lang |
|
1161 | + * |
|
1162 | + * @return string |
|
1163 | + */ |
|
1159 | 1164 | protected static function findBestL10NOption($options, $lang) { |
1160 | 1165 | // only a single option |
1161 | 1166 | if (isset($options['@value'])) { |