@@ -856,7 +856,7 @@ |
||
856 | 856 | * Get the certificate manager for the user |
857 | 857 | * |
858 | 858 | * @param string $userId (optional) if not specified the current loggedin user is used |
859 | - * @return \OCP\ICertificateManager | null if $uid is null and no user is logged in |
|
859 | + * @return null|CertificateManager | null if $uid is null and no user is logged in |
|
860 | 860 | */ |
861 | 861 | public function getCertificateManager($userId = null) { |
862 | 862 | if (is_null($userId)) { |
@@ -153,7 +153,7 @@ |
||
153 | 153 | |
154 | 154 | /** |
155 | 155 | * @param mixed $offset |
156 | - * @return mixed |
|
156 | + * @return string|null |
|
157 | 157 | */ |
158 | 158 | public function offsetGet($offset) { |
159 | 159 | return $this->get($offset); |
@@ -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) { |
@@ -142,7 +142,7 @@ |
||
142 | 142 | /** |
143 | 143 | * get the current active user |
144 | 144 | * |
145 | - * @return \OCP\IUser|null Current user, otherwise null |
|
145 | + * @return null|User Current user, otherwise null |
|
146 | 146 | */ |
147 | 147 | public function getUser() { |
148 | 148 | // FIXME: This is a quick'n dirty work-around for the incognito mode as |
@@ -100,8 +100,8 @@ |
||
100 | 100 | /** |
101 | 101 | * Return the relative date in relation to today. Returns something like "last hour" or "two month ago" |
102 | 102 | * @param int $timestamp unix timestamp |
103 | - * @param boolean $dateOnly |
|
104 | - * @return \OC_L10N_String human readable interpretation of the timestamp |
|
103 | + * @param integer $dateOnly |
|
104 | + * @return string human readable interpretation of the timestamp |
|
105 | 105 | * |
106 | 106 | * @deprecated 8.0.0 Use \OCP\Template::relative_modified_date() instead |
107 | 107 | */ |
@@ -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') { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @param string|int $category |
|
100 | + * @param string $category |
|
101 | 101 | * @return int |
102 | 102 | */ |
103 | 103 | protected function getCategory($category) { |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |