@@ -383,6 +383,14 @@ discard block |
||
| 383 | 383 | return $size; |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | + /** |
|
| 387 | + * @param string $path |
|
| 388 | + * @param boolean $recursive |
|
| 389 | + * @param integer $reuse |
|
| 390 | + * @param integer|null $folderId |
|
| 391 | + * @param boolean $lock |
|
| 392 | + * @param integer $size |
|
| 393 | + */ |
|
| 386 | 394 | private function handleChildren($path, $recursive, $reuse, $folderId, $lock, &$size) { |
| 387 | 395 | // we put this in it's own function so it cleans up the memory before we start recursing |
| 388 | 396 | $existingChildren = $this->getExistingChildren($folderId); |
@@ -479,6 +487,9 @@ discard block |
||
| 479 | 487 | } |
| 480 | 488 | } |
| 481 | 489 | |
| 490 | + /** |
|
| 491 | + * @param string|boolean $path |
|
| 492 | + */ |
|
| 482 | 493 | private function runBackgroundScanJob(callable $callback, $path) { |
| 483 | 494 | try { |
| 484 | 495 | $callback(); |
@@ -923,7 +923,7 @@ |
||
| 923 | 923 | * @param int $previewWidth |
| 924 | 924 | * @param int $previewHeight |
| 925 | 925 | * |
| 926 | - * @return int[] |
|
| 926 | + * @return double[] |
|
| 927 | 927 | */ |
| 928 | 928 | private function scale($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) { |
| 929 | 929 | $scalingUp = $this->getScalingUp(); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * Returns expensive repair steps to be run on the |
| 143 | 143 | * command line with a special option. |
| 144 | 144 | * |
| 145 | - * @return IRepairStep[] |
|
| 145 | + * @return OldGroupMembershipShares[] |
|
| 146 | 146 | */ |
| 147 | 147 | public static function getExpensiveRepairSteps() { |
| 148 | 148 | return [ |
@@ -218,7 +218,6 @@ discard block |
||
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | - * @param int $max |
|
| 222 | 221 | */ |
| 223 | 222 | public function finishProgress() { |
| 224 | 223 | // for now just emit as we did in the past |
@@ -741,11 +741,19 @@ discard block |
||
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | // case-insensitive array_search |
| 744 | + |
|
| 745 | + /** |
|
| 746 | + * @param string $needle |
|
| 747 | + */ |
|
| 744 | 748 | protected function array_searchi($needle, $haystack, $mem='getName') { |
| 745 | 749 | if(!is_array($haystack)) { |
| 746 | 750 | return false; |
| 747 | 751 | } |
| 748 | 752 | return array_search(strtolower($needle), array_map( |
| 753 | + |
|
| 754 | + /** |
|
| 755 | + * @param string $tag |
|
| 756 | + */ |
|
| 749 | 757 | function($tag) use($mem) { |
| 750 | 758 | return strtolower(call_user_func(array($tag, $mem))); |
| 751 | 759 | }, $haystack) |
@@ -770,7 +778,7 @@ discard block |
||
| 770 | 778 | * Get a tag by its name. |
| 771 | 779 | * |
| 772 | 780 | * @param string $name The tag name. |
| 773 | - * @return integer|bool The tag object's offset within the $this->tags |
|
| 781 | + * @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags |
|
| 774 | 782 | * array or false if it doesn't exist. |
| 775 | 783 | */ |
| 776 | 784 | private function getTagByName($name) { |
@@ -781,7 +789,7 @@ discard block |
||
| 781 | 789 | * Get a tag by its ID. |
| 782 | 790 | * |
| 783 | 791 | * @param string $id The tag ID to look for. |
| 784 | - * @return integer|bool The tag object's offset within the $this->tags |
|
| 792 | + * @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags |
|
| 785 | 793 | * array or false if it doesn't exist. |
| 786 | 794 | */ |
| 787 | 795 | private function getTagById($id) { |
@@ -329,7 +329,7 @@ |
||
| 329 | 329 | |
| 330 | 330 | /** |
| 331 | 331 | * http basic auth |
| 332 | - * @return string|false (username, or false on failure) |
|
| 332 | + * @return string (username, or false on failure) |
|
| 333 | 333 | */ |
| 334 | 334 | private static function loginUser() { |
| 335 | 335 | if(self::$isLoggedIn === true) { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * send a message to the client |
| 89 | 89 | * |
| 90 | 90 | * @param string $type |
| 91 | - * @param mixed $data |
|
| 91 | + * @param string $data |
|
| 92 | 92 | * |
| 93 | 93 | * @throws \BadMethodCallException |
| 94 | 94 | * if only one parameter is given, a typeless message will be send with that parameter as data |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @param string $gid |
| 155 | - * @return \OCP\IGroup |
|
| 155 | + * @return null|Group |
|
| 156 | 156 | */ |
| 157 | 157 | protected function getGroupObject($gid) { |
| 158 | 158 | $backends = array(); |
@@ -476,7 +476,7 @@ |
||
| 476 | 476 | |
| 477 | 477 | /** |
| 478 | 478 | * Removes an app |
| 479 | - * @param string $name name of the application to remove |
|
| 479 | + * @param string $appId |
|
| 480 | 480 | * @return boolean |
| 481 | 481 | * |
| 482 | 482 | * |
@@ -524,7 +524,7 @@ |
||
| 524 | 524 | * @param array $input The array to work on |
| 525 | 525 | * @param int $case Either MB_CASE_UPPER or MB_CASE_LOWER (default) |
| 526 | 526 | * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8 |
| 527 | - * @return array |
|
| 527 | + * @return string |
|
| 528 | 528 | * @since 4.5.0 |
| 529 | 529 | */ |
| 530 | 530 | public static function mb_array_change_key_case($input, $case = MB_CASE_LOWER, $encoding = 'UTF-8') { |