@@ -155,7 +155,7 @@ |
||
155 | 155 | * Set a value in the cache if it's not already stored |
156 | 156 | * |
157 | 157 | * @param string $key |
158 | - * @param mixed $value |
|
158 | + * @param integer $value |
|
159 | 159 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
160 | 160 | * @return bool |
161 | 161 | * @throws \Exception |
@@ -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(); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Returns expensive repair steps to be run on the |
124 | 124 | * command line with a special option. |
125 | 125 | * |
126 | - * @return array of RepairStep instances |
|
126 | + * @return OldGroupMembershipShares[] of RepairStep instances |
|
127 | 127 | */ |
128 | 128 | public static function getExpensiveRepairSteps() { |
129 | 129 | return [ |
@@ -163,6 +163,8 @@ discard block |
||
163 | 163 | * {@inheritDoc} |
164 | 164 | * |
165 | 165 | * Re-declared as public to allow invocation from within the closure above in php 5.3 |
166 | + * @param string $scope |
|
167 | + * @param string $method |
|
166 | 168 | */ |
167 | 169 | public function emit($scope, $method, array $arguments = array()) { |
168 | 170 | parent::emit($scope, $method, $arguments); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param \Doctrine\DBAL\Connection $connection |
|
72 | + * @param \OC\DB\Connection $connection |
|
73 | 73 | * @return string[] |
74 | 74 | */ |
75 | 75 | protected function getAllNonUTF8BinTables($connection) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * @param \Doctrine\DBAL\Connection $connection |
|
56 | + * @param \OCP\IDBConnection $connection |
|
57 | 57 | * @return string[] |
58 | 58 | */ |
59 | 59 | private function getAllMyIsamTables($connection) { |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use OCP\Security\ICrypto; |
25 | 25 | use OCP\IDBConnection; |
26 | 26 | use OCP\Security\ICredentialsManager; |
27 | -use OCP\IConfig; |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * Store and retrieve credentials for external services |
@@ -1074,7 +1074,7 @@ |
||
1074 | 1074 | * Get the certificate manager for the user |
1075 | 1075 | * |
1076 | 1076 | * @param string $userId (optional) if not specified the current loggedin user is used, use null to get the system certificate manager |
1077 | - * @return \OCP\ICertificateManager | null if $uid is null and no user is logged in |
|
1077 | + * @return null|CertificateManager | null if $uid is null and no user is logged in |
|
1078 | 1078 | */ |
1079 | 1079 | public function getCertificateManager($userId = '') { |
1080 | 1080 | if ($userId === '') { |
@@ -74,7 +74,6 @@ |
||
74 | 74 | use OC\Session\CryptoWrapper; |
75 | 75 | use OC\Tagging\TagMapper; |
76 | 76 | use OCA\Theming\Template; |
77 | -use OCP\IL10N; |
|
78 | 77 | use OCP\IServerContainer; |
79 | 78 | use OCP\Security\IContentSecurityPolicyManager; |
80 | 79 | use Symfony\Component\EventDispatcher\EventDispatcher; |
@@ -176,7 +176,7 @@ |
||
176 | 176 | |
177 | 177 | /** |
178 | 178 | * @param mixed $offset |
179 | - * @return mixed |
|
179 | + * @return string|null |
|
180 | 180 | */ |
181 | 181 | public function offsetGet($offset) { |
182 | 182 | return $this->get($offset); |
@@ -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(array($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) { |