@@ -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); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string $path |
| 176 | 176 | * @throws \OCP\Files\NotFoundException |
| 177 | 177 | * @throws \OCP\Files\NotPermittedException |
| 178 | - * @return File|Folder |
|
| 178 | + * @return string |
|
| 179 | 179 | */ |
| 180 | 180 | public function get($path) { |
| 181 | 181 | $path = $this->normalizePath($path); |
@@ -374,6 +374,9 @@ discard block |
||
| 374 | 374 | |
| 375 | 375 | } |
| 376 | 376 | |
| 377 | + /** |
|
| 378 | + * @param string $fullPath |
|
| 379 | + */ |
|
| 377 | 380 | private function resolveVirtualNode($fullPath) { |
| 378 | 381 | $pieces = \explode('/', $fullPath); |
| 379 | 382 | if ($pieces[1] !== 'meta') { |
@@ -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]); |
@@ -742,11 +742,19 @@ discard block |
||
| 742 | 742 | } |
| 743 | 743 | |
| 744 | 744 | // case-insensitive array_search |
| 745 | + |
|
| 746 | + /** |
|
| 747 | + * @param string $needle |
|
| 748 | + */ |
|
| 745 | 749 | protected function array_searchi($needle, $haystack, $mem='getName') { |
| 746 | 750 | if(!\is_array($haystack)) { |
| 747 | 751 | return false; |
| 748 | 752 | } |
| 749 | 753 | return \array_search(\strtolower($needle), \array_map( |
| 754 | + |
|
| 755 | + /** |
|
| 756 | + * @param string $tag |
|
| 757 | + */ |
|
| 750 | 758 | function($tag) use($mem) { |
| 751 | 759 | return \strtolower(\call_user_func([$tag, $mem])); |
| 752 | 760 | }, $haystack) |
@@ -771,7 +779,7 @@ discard block |
||
| 771 | 779 | * Get a tag by its name. |
| 772 | 780 | * |
| 773 | 781 | * @param string $name The tag name. |
| 774 | - * @return integer|bool The tag object's offset within the $this->tags |
|
| 782 | + * @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags |
|
| 775 | 783 | * array or false if it doesn't exist. |
| 776 | 784 | */ |
| 777 | 785 | private function getTagByName($name) { |
@@ -782,7 +790,7 @@ discard block |
||
| 782 | 790 | * Get a tag by its ID. |
| 783 | 791 | * |
| 784 | 792 | * @param string $id The tag ID to look for. |
| 785 | - * @return integer|bool The tag object's offset within the $this->tags |
|
| 793 | + * @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags |
|
| 786 | 794 | * array or false if it doesn't exist. |
| 787 | 795 | */ |
| 788 | 796 | private function getTagById($id) { |
@@ -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 = []) { |
@@ -322,6 +322,7 @@ |
||
| 322 | 322 | * @param string $error_msg The error message to show |
| 323 | 323 | * @param string $hint An optional hint message - needs to be properly escaped |
| 324 | 324 | * @param int HTTP Status Code |
| 325 | + * @param integer $httpStatusCode |
|
| 325 | 326 | */ |
| 326 | 327 | public static function printErrorPage($error_msg, $hint = '', $httpStatusCode = null) { |
| 327 | 328 | if ($error_msg === $hint) { |