@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param string $key |
96 | 96 | * @param mixed $value |
97 | 97 | * @param int $ttl |
98 | - * @return bool|mixed |
|
98 | + * @return boolean |
|
99 | 99 | * @throws \OC\ForbiddenException |
100 | 100 | */ |
101 | 101 | public function set($key, $value, $ttl = 0) { |
@@ -132,7 +132,7 @@ |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * @param $message |
|
135 | + * @param string $message |
|
136 | 136 | * @param array $additional |
137 | 137 | * @return array |
138 | 138 | */ |
@@ -89,6 +89,9 @@ discard block |
||
89 | 89 | return $this->getMountsFromQuery($query); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $userId |
|
94 | + */ |
|
92 | 95 | public function getMountsForUser($userId, $groupIds) { |
93 | 96 | $builder = $this->connection->getQueryBuilder(); |
94 | 97 | $query = $builder->select(['m.mount_id', 'mount_point', 'storage_backend', 'auth_backend', 'priority', 'm.type']) |
@@ -125,6 +128,10 @@ discard block |
||
125 | 128 | return $this->getMountsFromQuery($query); |
126 | 129 | } |
127 | 130 | |
131 | + /** |
|
132 | + * @param integer $type |
|
133 | + * @param string|null $value |
|
134 | + */ |
|
128 | 135 | protected function getForQuery(IQueryBuilder $builder, $type, $value) { |
129 | 136 | $query = $builder->select(['m.mount_id', 'mount_point', 'storage_backend', 'auth_backend', 'priority', 'm.type']) |
130 | 137 | ->from('external_mounts', 'm') |
@@ -332,6 +339,9 @@ discard block |
||
332 | 339 | } |
333 | 340 | } |
334 | 341 | |
342 | + /** |
|
343 | + * @param integer $mountId |
|
344 | + */ |
|
335 | 345 | public function addApplicable($mountId, $type, $value) { |
336 | 346 | $this->connection->insertIfNotExist('*PREFIX*external_applicable', [ |
337 | 347 | 'mount_id' => $mountId, |
@@ -340,6 +350,9 @@ discard block |
||
340 | 350 | ], ['mount_id', 'type', 'value']); |
341 | 351 | } |
342 | 352 | |
353 | + /** |
|
354 | + * @param integer $mountId |
|
355 | + */ |
|
343 | 356 | public function removeApplicable($mountId, $type, $value) { |
344 | 357 | $builder = $this->connection->getQueryBuilder(); |
345 | 358 | $query = $builder->delete('external_applicable') |
@@ -473,6 +486,9 @@ discard block |
||
473 | 486 | return array_combine($keys, $values); |
474 | 487 | } |
475 | 488 | |
489 | + /** |
|
490 | + * @param string $value |
|
491 | + */ |
|
476 | 492 | private function encryptValue($value) { |
477 | 493 | return $this->crypto->encrypt($value); |
478 | 494 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * BaseResponse constructor. |
26 | 26 | * |
27 | - * @param DataResponse|null $dataResponse |
|
27 | + * @param DataResponse $dataResponse |
|
28 | 28 | * @param string $format |
29 | 29 | * @param string|null $statusMessage |
30 | 30 | * @param int|null $itemsCount |
@@ -1143,7 +1143,7 @@ discard block |
||
1143 | 1143 | * Get the certificate manager for the user |
1144 | 1144 | * |
1145 | 1145 | * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
1146 | - * @return \OCP\ICertificateManager | null if $uid is null and no user is logged in |
|
1146 | + * @return null|CertificateManager | null if $uid is null and no user is logged in |
|
1147 | 1147 | */ |
1148 | 1148 | public function getCertificateManager($userId = '') { |
1149 | 1149 | if ($userId === '') { |
@@ -1464,6 +1464,7 @@ discard block |
||
1464 | 1464 | } |
1465 | 1465 | |
1466 | 1466 | /** |
1467 | + * @param string $app |
|
1467 | 1468 | * @return \OCP\Files\IAppData |
1468 | 1469 | */ |
1469 | 1470 | public function getAppDataDir($app) { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * @param RequestInterface $request |
135 | 135 | * @param ResponseInterface $response |
136 | 136 | * |
137 | - * @return void|bool |
|
137 | + * @return null|false |
|
138 | 138 | */ |
139 | 139 | public function httpPost(RequestInterface $request, ResponseInterface $response) { |
140 | 140 | $path = $request->getPath(); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param \Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend |
33 | - * @param \Sabre\CardDAV\Backend\BackendInterface $carddavBackend |
|
33 | + * @param CardDavBackend $carddavBackend |
|
34 | 34 | * @param string $principalPrefix |
35 | 35 | */ |
36 | 36 | public function __construct(\Sabre\DAVACL\PrincipalBackend\BackendInterface $principalBackend, \Sabre\CardDAV\Backend\BackendInterface $carddavBackend, $principalPrefix = 'principals') { |
@@ -770,7 +770,7 @@ |
||
770 | 770 | |
771 | 771 | /** |
772 | 772 | * @param Share[] $shares |
773 | - * @param $userId |
|
773 | + * @param string $userId |
|
774 | 774 | * @return Share[] The updates shares if no update is found for a share return the original |
775 | 775 | */ |
776 | 776 | private function resolveGroupShares($shares, $userId) { |
@@ -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 = []; |