@@ -241,6 +241,9 @@ discard block |
||
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | + /** |
|
| 245 | + * @param string $name |
|
| 246 | + */ |
|
| 244 | 247 | private function checkBlackList($name, $errorCode, Node $node) { |
| 245 | 248 | $lowerName = \strtolower($name); |
| 246 | 249 | |
@@ -254,6 +257,9 @@ discard block |
||
| 254 | 257 | } |
| 255 | 258 | } |
| 256 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $constantName |
|
| 262 | + */ |
|
| 257 | 263 | private function checkBlackListConstant($class, $constantName, Node $node) { |
| 258 | 264 | $name = $class . '::' . $constantName; |
| 259 | 265 | $lowerName = \strtolower($name); |
@@ -268,6 +274,9 @@ discard block |
||
| 268 | 274 | } |
| 269 | 275 | } |
| 270 | 276 | |
| 277 | + /** |
|
| 278 | + * @param string $class |
|
| 279 | + */ |
|
| 271 | 280 | private function checkBlackListFunction($class, $functionName, Node $node) { |
| 272 | 281 | $name = $class . '::' . $functionName; |
| 273 | 282 | $lowerName = \strtolower($name); |
@@ -282,6 +291,9 @@ discard block |
||
| 282 | 291 | } |
| 283 | 292 | } |
| 284 | 293 | |
| 294 | + /** |
|
| 295 | + * @param string $class |
|
| 296 | + */ |
|
| 285 | 297 | private function checkBlackListMethod($class, $functionName, Node $node) { |
| 286 | 298 | $name = $class . '::' . $functionName; |
| 287 | 299 | $lowerName = \strtolower($name); |
@@ -296,6 +308,9 @@ discard block |
||
| 296 | 308 | } |
| 297 | 309 | } |
| 298 | 310 | |
| 311 | + /** |
|
| 312 | + * @param string $name |
|
| 313 | + */ |
|
| 299 | 314 | private function buildReason($name, $errorCode) { |
| 300 | 315 | if (isset($this->errorMessages[$errorCode])) { |
| 301 | 316 | $desc = $this->list->getDescription($errorCode, $name); |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $userId |
|
| 103 | + */ |
|
| 101 | 104 | private function buildAvatarPath($userId) { |
| 102 | 105 | $avatar = \substr_replace(\substr_replace(\md5($userId), '/', 4, 0), '/', 2, 0); |
| 103 | 106 | return \explode('/', $avatar); |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | /** |
| 207 | 207 | * removes an entry from the comments run time cache |
| 208 | 208 | * |
| 209 | - * @param mixed $id the comment's id |
|
| 209 | + * @param string $id the comment's id |
|
| 210 | 210 | */ |
| 211 | 211 | protected function uncache($id) { |
| 212 | 212 | $id = \strval($id); |
@@ -234,6 +234,10 @@ |
||
| 234 | 234 | return '/^' . \preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | + /** |
|
| 238 | + * @param integer $step |
|
| 239 | + * @param integer $max |
|
| 240 | + */ |
|
| 237 | 241 | protected function emit($sql, $step, $max) { |
| 238 | 242 | if ($this->noEmit) { |
| 239 | 243 | return; |
@@ -409,6 +409,9 @@ |
||
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | + /** |
|
| 413 | + * @param string $path |
|
| 414 | + */ |
|
| 412 | 415 | private function getParentPath($path) { |
| 413 | 416 | $parent = \dirname($path); |
| 414 | 417 | if ($parent === '.') { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | 76 | * @param array $entry |
| 77 | - * @return array |
|
| 77 | + * @return string |
|
| 78 | 78 | */ |
| 79 | 79 | protected function formatCacheEntry($entry) { |
| 80 | 80 | if (isset($entry['path'])) { |
@@ -193,6 +193,9 @@ discard block |
||
| 193 | 193 | return $this->cache->getStatus($this->getSourcePath($file)); |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | + /** |
|
| 197 | + * @param \OCP\Files\Cache\ICacheEntry[] $results |
|
| 198 | + */ |
|
| 196 | 199 | private function formatSearchResults($results) { |
| 197 | 200 | $results = \array_filter($results, [$this, 'filterCacheEntry']); |
| 198 | 201 | $results = \array_values($results); |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | return true; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $path |
|
| 150 | + */ |
|
| 148 | 151 | public function url_stat($path) { |
| 149 | 152 | if (isset(self::$data[$path])) { |
| 150 | 153 | $size = \strlen(self::$data[$path]); |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | /** |
| 171 | 171 | * Returns whether the given mount point should be scanned |
| 172 | 172 | * |
| 173 | - * @param $mount mount point |
|
| 173 | + * @param \OC\Files\Mount\MountPoint|null $mount mount point |
|
| 174 | 174 | * @return bool true to scan, false to skip |
| 175 | 175 | */ |
| 176 | 176 | private function shouldScan($mount) { |
@@ -189,10 +189,10 @@ |
||
| 189 | 189 | * inform recipient about public link share |
| 190 | 190 | * |
| 191 | 191 | * @param string $recipient recipient email address |
| 192 | - * @param string $filename the shared file |
|
| 193 | - * @param string $link the public link |
|
| 194 | 192 | * @param array $options allows ['cc'] and ['bcc'] recipients |
| 195 | - * @param int $expiration expiration date (timestamp) |
|
| 193 | + * @param string $subject |
|
| 194 | + * @param boolean|string $htmlBody |
|
| 195 | + * @param boolean|string $textBody |
|
| 196 | 196 | * @return string[] $result of failed recipients |
| 197 | 197 | */ |
| 198 | 198 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = []) { |