@@ -89,6 +89,9 @@ |
||
| 89 | 89 | $this->user = $user; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $tagId |
|
| 94 | + */ |
|
| 92 | 95 | function createFile($tagId, $data = null) { |
| 93 | 96 | try { |
| 94 | 97 | $tags = $this->tagManager->getTagsByIds([$tagId]); |
@@ -273,6 +273,10 @@ discard block |
||
| 273 | 273 | return '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | + /** |
|
| 277 | + * @param integer $step |
|
| 278 | + * @param integer $max |
|
| 279 | + */ |
|
| 276 | 280 | protected function emit($sql, $step, $max) { |
| 277 | 281 | if ($this->noEmit) { |
| 278 | 282 | return; |
@@ -283,6 +287,10 @@ discard block |
||
| 283 | 287 | $this->dispatcher->dispatch('\OC\DB\Migrator::executeSql', new GenericEvent($sql, [$step+1, $max])); |
| 284 | 288 | } |
| 285 | 289 | |
| 290 | + /** |
|
| 291 | + * @param integer $step |
|
| 292 | + * @param integer $max |
|
| 293 | + */ |
|
| 286 | 294 | private function emitCheckStep($tableName, $step, $max) { |
| 287 | 295 | if(is_null($this->dispatcher)) { |
| 288 | 296 | return; |
@@ -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) { |
@@ -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); |
@@ -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 | */ |
@@ -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(); |