@@ -61,7 +61,7 @@ |
||
61 | 61 | * The deserialize method is called during xml parsing. |
62 | 62 | * |
63 | 63 | * @param Reader $reader |
64 | - * @return mixed |
|
64 | + * @return null|ShareTypeList |
|
65 | 65 | */ |
66 | 66 | static function xmlDeserialize(Reader $reader) { |
67 | 67 | $shareTypes = []; |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * the next element. |
81 | 81 | * |
82 | 82 | * @param Reader $reader |
83 | - * @return mixed |
|
83 | + * @return null|TagList |
|
84 | 84 | */ |
85 | 85 | static function xmlDeserialize(Reader $reader) { |
86 | 86 | $tags = []; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param ITagManager $fileTagger manager for private tags |
106 | 106 | * @param IUserSession $userSession |
107 | 107 | * @param IGroupManager $groupManager |
108 | - * @param Folder $userfolder |
|
108 | + * @param Folder $userFolder |
|
109 | 109 | */ |
110 | 110 | public function __construct(Tree $tree, |
111 | 111 | View $view, |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * This will be used in the {DAV:}supported-report-set property. |
152 | 152 | * |
153 | 153 | * @param string $uri |
154 | - * @return array |
|
154 | + * @return string[] |
|
155 | 155 | */ |
156 | 156 | public function getSupportedReportSet($uri) { |
157 | 157 | return [self::REPORT_NAME]; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * @param string $reportName |
164 | 164 | * @param [] $report |
165 | 165 | * @param string $uri |
166 | - * @return bool |
|
166 | + * @return null|false |
|
167 | 167 | * @throws NotFound |
168 | 168 | * @throws ReportNotSupported |
169 | 169 | */ |
@@ -336,6 +336,7 @@ discard block |
||
336 | 336 | * with a leading slash but no trailing slash |
337 | 337 | * @param string[] $requestedProps requested properties |
338 | 338 | * @param Node[] nodes nodes for which to fetch and prepare responses |
339 | + * @param Node[] $nodes |
|
339 | 340 | * @return Response[] |
340 | 341 | */ |
341 | 342 | public function prepareResponses($filesUri, $requestedProps, $nodes) { |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * @param bool $isLoggedIn |
92 | 92 | * @param bool $isAdminUser |
93 | 93 | * @param ContentSecurityPolicyManager $contentSecurityPolicyManager |
94 | - * @param CSRFTokenManager $csrfTokenManager |
|
94 | + * @param CsrfTokenManager $csrfTokenManager |
|
95 | 95 | */ |
96 | 96 | public function __construct(IRequest $request, |
97 | 97 | ControllerMethodReflector $reflector, |
@@ -175,6 +175,12 @@ discard block |
||
175 | 175 | |
176 | 176 | } |
177 | 177 | |
178 | + /** |
|
179 | + * @param string $link |
|
180 | + * @param string $owner |
|
181 | + * @param string $initiator |
|
182 | + * @param string $shareWith |
|
183 | + */ |
|
178 | 184 | private function sendMailNotification($filename, $link, $owner, $initiator, $shareWith) { |
179 | 185 | if ($owner === $initiator) { |
180 | 186 | $subject = (string)$this->l->t('%s shared »%s« with you', array($owner, $filename)); |
@@ -200,6 +206,7 @@ discard block |
||
200 | 206 | * @param $link |
201 | 207 | * @param $owner |
202 | 208 | * @param $initiator |
209 | + * @param string $template |
|
203 | 210 | * @return string plain text mail |
204 | 211 | * @throws HintException |
205 | 212 | */ |
@@ -639,7 +646,7 @@ discard block |
||
639 | 646 | /** |
640 | 647 | * get database row of a give share |
641 | 648 | * |
642 | - * @param $id |
|
649 | + * @param integer $id |
|
643 | 650 | * @return array |
644 | 651 | * @throws ShareNotFound |
645 | 652 | */ |
@@ -1036,7 +1036,7 @@ discard block |
||
1036 | 1036 | * @param string $app |
1037 | 1037 | * @param \OCP\IConfig $config |
1038 | 1038 | * @param \OCP\IL10N $l |
1039 | - * @return bool |
|
1039 | + * @return string |
|
1040 | 1040 | * |
1041 | 1041 | * @throws Exception if app is not compatible with this version of ownCloud |
1042 | 1042 | * @throws Exception if no app-name was specified |
@@ -1216,6 +1216,9 @@ discard block |
||
1216 | 1216 | } |
1217 | 1217 | } |
1218 | 1218 | |
1219 | + /** |
|
1220 | + * @param string $lang |
|
1221 | + */ |
|
1219 | 1222 | protected static function findBestL10NOption($options, $lang) { |
1220 | 1223 | $fallback = $similarLangFallback = $englishFallback = false; |
1221 | 1224 | |
@@ -1310,8 +1313,8 @@ discard block |
||
1310 | 1313 | } |
1311 | 1314 | |
1312 | 1315 | /** |
1313 | - * @param $config |
|
1314 | - * @param $l |
|
1316 | + * @param OCP\IConfig $config |
|
1317 | + * @param OCP\IL10N $l |
|
1315 | 1318 | * @param $info |
1316 | 1319 | * @throws Exception |
1317 | 1320 | */ |
@@ -318,6 +318,11 @@ |
||
318 | 318 | */ |
319 | 319 | // FIXME This method is only public, until OC_L10N does not need it anymore, |
320 | 320 | // FIXME This is also the reason, why it is not in the public interface |
321 | + |
|
322 | + /** |
|
323 | + * @param string $app |
|
324 | + * @param string $lang |
|
325 | + */ |
|
321 | 326 | public function getL10nFilesForApp($app, $lang) { |
322 | 327 | $languageFiles = []; |
323 | 328 |
@@ -131,7 +131,7 @@ |
||
131 | 131 | /** |
132 | 132 | * Create the federated share provider |
133 | 133 | * |
134 | - * @return FederatedShareProvider |
|
134 | + * @return null|ShareByMailProvider |
|
135 | 135 | */ |
136 | 136 | protected function getShareByMailProvider() { |
137 | 137 | if ($this->shareByMailProvider === null) { |