@@ -103,6 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Chceks if the ownCloud server can connect to a specific URL using both HTTPS and HTTP |
106 | + * @param string $sitename |
|
106 | 107 | * @return bool |
107 | 108 | */ |
108 | 109 | private function isSiteReachable($sitename) { |
@@ -285,7 +286,7 @@ discard block |
||
285 | 286 | |
286 | 287 | /** |
287 | 288 | * @NoCSRFRequired |
288 | - * @return DataResponse |
|
289 | + * @return DataDisplayResponse |
|
289 | 290 | */ |
290 | 291 | public function getFailedIntegrityCheckFiles() { |
291 | 292 | if(!$this->checker->isCodeCheckEnforced()) { |
@@ -1104,7 +1104,7 @@ |
||
1104 | 1104 | } |
1105 | 1105 | |
1106 | 1106 | /** |
1107 | - * @param array $reqs |
|
1107 | + * @param string[] $reqs |
|
1108 | 1108 | * @return bool |
1109 | 1109 | */ |
1110 | 1110 | private function checkRequirements($reqs) { |
@@ -151,7 +151,6 @@ |
||
151 | 151 | /** |
152 | 152 | * saves database schema to xml file |
153 | 153 | * @param string $file name of file |
154 | - * @param int $mode |
|
155 | 154 | * @return bool |
156 | 155 | * |
157 | 156 | * TODO: write more documentation |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * |
111 | 111 | * @param string $newPath |
112 | 112 | * @param \OCP\Share\IShare $share |
113 | - * @return bool |
|
113 | + * @return boolean|null |
|
114 | 114 | */ |
115 | 115 | private function updateFileTarget($newPath, &$share) { |
116 | 116 | $share->setTarget($newPath); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @param string $path |
127 | 127 | * @param View $view |
128 | 128 | * @param SharedMount[] $mountpoints |
129 | - * @return mixed |
|
129 | + * @return string |
|
130 | 130 | */ |
131 | 131 | private function generateUniqueTarget($path, $view, array $mountpoints) { |
132 | 132 | $pathinfo = pathinfo($path); |
@@ -334,7 +334,7 @@ |
||
334 | 334 | * |
335 | 335 | * @param int $size file size in bytes |
336 | 336 | * @param array $files override '.htaccess' and '.user.ini' locations |
337 | - * @return bool false on failure, size on success |
|
337 | + * @return integer false on failure, size on success |
|
338 | 338 | */ |
339 | 339 | public static function setUploadLimit($size, $files = []) { |
340 | 340 | //don't allow user to break his config |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @NoAdminRequired |
74 | 74 | * @NoSubadminRequired |
75 | - * @return array |
|
75 | + * @return DataResponse |
|
76 | 76 | */ |
77 | 77 | public function addPersonalRootCertificate() { |
78 | 78 | return $this->addCertificate($this->userCertificateManager); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Add a new personal root certificate to the system's trust store |
162 | 162 | * |
163 | - * @return array |
|
163 | + * @return DataResponse |
|
164 | 164 | */ |
165 | 165 | public function addSystemRootCertificate() { |
166 | 166 | return $this->addCertificate($this->systemCertificateManager); |
@@ -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) { |
@@ -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 |