@@ -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) { |
@@ -153,7 +153,6 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * saves database schema to xml file |
155 | 155 | * @param string $file name of file |
156 | - * @param int $mode |
|
157 | 156 | * @return bool |
158 | 157 | * |
159 | 158 | * TODO: write more documentation |
@@ -197,7 +196,7 @@ discard block |
||
197 | 196 | * simulate the database schema update |
198 | 197 | * @param string $file file to read structure from |
199 | 198 | * @throws Exception |
200 | - * @return string|boolean |
|
199 | + * @return boolean |
|
201 | 200 | */ |
202 | 201 | public static function simulateUpdateDbFromStructure($file) { |
203 | 202 | $schemaManager = self::getMDB2SchemaManager(); |
@@ -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 |
@@ -1434,7 +1434,7 @@ |
||
1434 | 1434 | * Normalize a unicode string |
1435 | 1435 | * |
1436 | 1436 | * @param string $value a not normalized string |
1437 | - * @return bool|string |
|
1437 | + * @return string |
|
1438 | 1438 | */ |
1439 | 1439 | public static function normalizeUnicode($value) { |
1440 | 1440 | if(Normalizer::isNormalized($value)) { |
@@ -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 | * |