@@ -759,6 +759,10 @@ discard block |
||
759 | 759 | ); |
760 | 760 | } |
761 | 761 | |
762 | + /** |
|
763 | + * @param OC\Files\View $view |
|
764 | + * @param string $path |
|
765 | + */ |
|
762 | 766 | private function createAndCheckVersions($view, $path) { |
763 | 767 | $view->file_put_contents($path, 'test file'); |
764 | 768 | $view->file_put_contents($path, 'version 1'); |
@@ -782,7 +786,6 @@ discard block |
||
782 | 786 | /** |
783 | 787 | * @param string $user |
784 | 788 | * @param bool $create |
785 | - * @param bool $password |
|
786 | 789 | */ |
787 | 790 | public static function loginHelper($user, $create = false) { |
788 | 791 |
@@ -470,7 +470,7 @@ |
||
470 | 470 | /** |
471 | 471 | * @param string $userId |
472 | 472 | * @param array $data |
473 | - * @return mixed |
|
473 | + * @return string |
|
474 | 474 | * @throws \OCP\Files\NotFoundException |
475 | 475 | */ |
476 | 476 | private static function fillStorageInfo($userId, $data) { |
@@ -369,6 +369,7 @@ |
||
369 | 369 | * already. If not, it will marked like this, because it is expected that |
370 | 370 | * the method will be run, when false is returned. |
371 | 371 | * @param string email | quota | avatar (can be extended) |
372 | + * @param string $feature |
|
372 | 373 | * @return bool |
373 | 374 | */ |
374 | 375 | private function wasRefreshed($feature) { |
@@ -150,7 +150,7 @@ |
||
150 | 150 | |
151 | 151 | /** |
152 | 152 | * @param \Sabre\DAV\Server $server |
153 | - * @param $realm |
|
153 | + * @param string $realm |
|
154 | 154 | * @return bool |
155 | 155 | */ |
156 | 156 | private function auth(\Sabre\DAV\Server $server, $realm) { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Returns the size of the node, in bytes |
186 | 186 | * |
187 | - * @return int|float |
|
187 | + * @return integer |
|
188 | 188 | */ |
189 | 189 | public function getSize() { |
190 | 190 | return $this->info->getSize(); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
216 | - * @return string|null |
|
216 | + * @return string |
|
217 | 217 | */ |
218 | 218 | public function getDavPermissions() { |
219 | 219 | $p = ''; |
@@ -168,7 +168,7 @@ |
||
168 | 168 | * The principals should be passed as a list of uri's. |
169 | 169 | * |
170 | 170 | * @param string $principal |
171 | - * @param array $members |
|
171 | + * @param string[] $members |
|
172 | 172 | * @throws \Sabre\DAV\Exception |
173 | 173 | */ |
174 | 174 | public function setGroupMemberSet($principal, array $members) { |
@@ -174,7 +174,7 @@ |
||
174 | 174 | * @param string $filename the shared file |
175 | 175 | * @param string $link the public link |
176 | 176 | * @param int $expiration expiration date (timestamp) |
177 | - * @return array $result of failed recipients |
|
177 | + * @return string[] $result of failed recipients |
|
178 | 178 | */ |
179 | 179 | public function sendLinkShareMail($recipient, $filename, $link, $expiration) { |
180 | 180 | $subject = (string)$this->l->t('%s shared »%s« with you', [$this->senderDisplayName, $filename]); |
@@ -166,6 +166,11 @@ |
||
166 | 166 | /* |
167 | 167 | * alias for self::isSubAdminofGroup() |
168 | 168 | */ |
169 | + |
|
170 | + /** |
|
171 | + * @param string $subadmin |
|
172 | + * @param string $group |
|
173 | + */ |
|
169 | 174 | public static function isGroupAccessible($subadmin, $group) { |
170 | 175 | return self::isSubAdminofGroup($subadmin, $group); |
171 | 176 | } |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | parent::tearDown(); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @return \OC\Files\Storage\Storage |
|
45 | + */ |
|
43 | 46 | private function getMockStorage() { |
44 | 47 | $storage = $this->getMock('\OCP\Files\Storage'); |
45 | 48 | $storage->expects($this->any()) |
@@ -243,7 +246,7 @@ discard block |
||
243 | 246 | * @param string $path path to put the file into |
244 | 247 | * @param string $viewRoot root to use for the view |
245 | 248 | * |
246 | - * @return result of the PUT operaiton which is usually the etag |
|
249 | + * @return string|null of the PUT operaiton which is usually the etag |
|
247 | 250 | */ |
248 | 251 | private function doPut($path, $viewRoot = null) { |
249 | 252 | $view = \OC\Files\Filesystem::getView(); |