@@ -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 |
@@ -197,6 +197,9 @@ discard block |
||
197 | 197 | return self::linkToRoute( 'core_ajax_preview', array('x' => 32, 'y' => 32, 'file' => $path )); |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param string $path |
|
202 | + */ |
|
200 | 203 | public static function publicPreviewIcon( $path, $token ) { |
201 | 204 | return self::linkToRoute( 'core_ajax_public_preview', array('x' => 32, 'y' => 32, 'file' => $path, 't' => $token)); |
202 | 205 | } |
@@ -827,7 +830,7 @@ discard block |
||
827 | 830 | * |
828 | 831 | * @param string $path |
829 | 832 | * @param \OCP\Files\FileInfo $rootInfo (optional) |
830 | - * @return array |
|
833 | + * @return string |
|
831 | 834 | * @throws \OCP\Files\NotFoundException |
832 | 835 | */ |
833 | 836 | public static function getStorageInfo($path, $rootInfo = null) { |
@@ -238,6 +238,7 @@ |
||
238 | 238 | |
239 | 239 | /** |
240 | 240 | * Sets user id for session and triggers emit |
241 | + * @param string $uid |
|
241 | 242 | */ |
242 | 243 | public static function setUserId($uid) { |
243 | 244 | $userSession = \OC::$server->getUserSession(); |
@@ -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)) { |