@@ -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) { |
@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | * @param string $template |
37 | 37 | * @param \OC_L10N $l10n |
38 | 38 | * @param \OC_Defaults $theme |
39 | + * @param string $requesttoken |
|
39 | 40 | */ |
40 | 41 | public function __construct( $template, $requesttoken, $l10n, $theme ) { |
41 | 42 | $this->vars = array(); |
@@ -95,7 +96,7 @@ discard block |
||
95 | 96 | /** |
96 | 97 | * Appends a variable |
97 | 98 | * @param string $key key |
98 | - * @param mixed $value value |
|
99 | + * @param string $value value |
|
99 | 100 | * @return boolean|null |
100 | 101 | * |
101 | 102 | * This function assigns a variable in an array context. If the key already |
@@ -277,7 +277,7 @@ |
||
277 | 277 | * @param string $installedVersion previous version from which to upgrade from |
278 | 278 | * |
279 | 279 | * @throws \Exception |
280 | - * @return bool true if the operation succeeded, false otherwise |
|
280 | + * @return boolean|null true if the operation succeeded, false otherwise |
|
281 | 281 | */ |
282 | 282 | private function doUpgrade($currentVersion, $installedVersion) { |
283 | 283 | // Stop update if the update is over several major versions |
@@ -32,7 +32,6 @@ |
||
32 | 32 | |
33 | 33 | namespace OC; |
34 | 34 | |
35 | -use OC\Core\Command\Log\Manage; |
|
36 | 35 | use OC\Hooks\BasicEmitter; |
37 | 36 | use OC_App; |
38 | 37 | use OC_Installer; |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Get the active backends |
87 | - * @return \OCP\UserInterface[] |
|
87 | + * @return \OCP\UserInterface |
|
88 | 88 | */ |
89 | 89 | public function getBackends() { |
90 | 90 | return $this->backends; |
@@ -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 |
@@ -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)) { |
@@ -36,6 +36,7 @@ |
||
36 | 36 | * @param object $object an object or classname |
37 | 37 | * @param string $method the method which we want to inspect |
38 | 38 | * @since 8.0.0 |
39 | + * @return void |
|
39 | 40 | */ |
40 | 41 | public function reflect($object, $method); |
41 | 42 |
@@ -131,7 +131,7 @@ |
||
131 | 131 | * @deprecated 6.0.0 |
132 | 132 | * Gets one queued task |
133 | 133 | * @param int $id ID of the task |
134 | - * @return BackgroundJob\IJob|null |
|
134 | + * @return BackgroundJob\IJob |
|
135 | 135 | * @since 4.5.0 |
136 | 136 | */ |
137 | 137 | public static function findQueuedTask($id) { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * Search for files by mimetype |
68 | 68 | * @param string $mimetype |
69 | - * @return array |
|
69 | + * @return \OC\Files\FileInfo[] |
|
70 | 70 | * @since 6.0.0 |
71 | 71 | */ |
72 | 72 | static public function searchByMime( $mimetype ) { |