@@ -136,7 +136,7 @@ |
||
| 136 | 136 | * Returns the list of members for a group-principal |
| 137 | 137 | * |
| 138 | 138 | * @param string $principal |
| 139 | - * @return array |
|
| 139 | + * @return string[] |
|
| 140 | 140 | */ |
| 141 | 141 | function getGroupMemberSet($principal) { |
| 142 | 142 | // TODO: for now the group principal has only one member, the user itself |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Prints a sanitized string |
| 33 | - * @param string|array $string the string which will be escaped and printed |
|
| 33 | + * @param string $string the string which will be escaped and printed |
|
| 34 | 34 | */ |
| 35 | 35 | function p($string) { |
| 36 | 36 | print(OC_Util::sanitizeHTML($string)); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * Prints an unsanitized string - usage of this function may result into XSS. |
| 41 | 41 | * Consider using p() instead. |
| 42 | - * @param string|array $string the string which will be printed as it is |
|
| 42 | + * @param string $string the string which will be printed as it is |
|
| 43 | 43 | */ |
| 44 | 44 | function print_unescaped($string) { |
| 45 | 45 | print($string); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * make preview_icon available as a simple function |
| 185 | 185 | * Returns the path to the preview of the image. |
| 186 | 186 | * @param string $path path of file |
| 187 | - * @return link to the preview |
|
| 187 | + * @return string to the preview |
|
| 188 | 188 | * |
| 189 | 189 | * For further information have a look at OC_Helper::previewIcon |
| 190 | 190 | */ |
@@ -194,6 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @param string $path |
| 197 | + * @param string $token |
|
| 197 | 198 | */ |
| 198 | 199 | function publicPreview_icon ( $path, $token ) { |
| 199 | 200 | return OC_Helper::publicPreviewIcon( $path, $token ); |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -398,6 +398,10 @@ discard block |
||
| 398 | 398 | $this->copyBetweenStorages($storage1, $storage2); |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | + /** |
|
| 402 | + * @param \OC\Files\Storage\Storage $storage1 |
|
| 403 | + * @param \OC\Files\Storage\Storage $storage2 |
|
| 404 | + */ |
|
| 401 | 405 | function copyBetweenStorages($storage1, $storage2) { |
| 402 | 406 | \OC\Files\Filesystem::mount($storage1, array(), '/'); |
| 403 | 407 | \OC\Files\Filesystem::mount($storage2, array(), '/substorage'); |
@@ -444,6 +448,10 @@ discard block |
||
| 444 | 448 | $this->moveBetweenStorages($storage1, $storage2); |
| 445 | 449 | } |
| 446 | 450 | |
| 451 | + /** |
|
| 452 | + * @param \OC\Files\Storage\Storage $storage1 |
|
| 453 | + * @param \OC\Files\Storage\Storage $storage2 |
|
| 454 | + */ |
|
| 447 | 455 | function moveBetweenStorages($storage1, $storage2) { |
| 448 | 456 | \OC\Files\Filesystem::mount($storage1, array(), '/'); |
| 449 | 457 | \OC\Files\Filesystem::mount($storage2, array(), '/substorage'); |
@@ -1004,6 +1012,9 @@ discard block |
||
| 1004 | 1012 | $this->doTestCopyRenameFail('copy'); |
| 1005 | 1013 | } |
| 1006 | 1014 | |
| 1015 | + /** |
|
| 1016 | + * @param string $operation |
|
| 1017 | + */ |
|
| 1007 | 1018 | private function doTestCopyRenameFail($operation) { |
| 1008 | 1019 | $storage1 = new Temporary(array()); |
| 1009 | 1020 | /** @var \PHPUnit_Framework_MockObject_MockObject | \OC\Files\Storage\Temporary $storage2 */ |
@@ -1417,7 +1428,7 @@ discard block |
||
| 1417 | 1428 | /** |
| 1418 | 1429 | * Create test movable mount points |
| 1419 | 1430 | * |
| 1420 | - * @param array $mountPoints array of mount point locations |
|
| 1431 | + * @param string[] $mountPoints array of mount point locations |
|
| 1421 | 1432 | * @return array array of MountPoint objects |
| 1422 | 1433 | */ |
| 1423 | 1434 | private function createTestMovableMountPoints($mountPoints) { |
@@ -1641,7 +1652,7 @@ discard block |
||
| 1641 | 1652 | * @param string $lockedPath path of the locked item to check |
| 1642 | 1653 | * @param string $hookType hook type |
| 1643 | 1654 | * @param int $expectedLockBefore expected lock during pre hooks |
| 1644 | - * @param int $expectedLockduring expected lock during operation |
|
| 1655 | + * @param int $expectedLockDuring expected lock during operation |
|
| 1645 | 1656 | * @param int $expectedLockAfter expected lock during post hooks |
| 1646 | 1657 | * @param int $expectedStrayLock expected lock after returning, should |
| 1647 | 1658 | * be null (unlock) for most operations |
@@ -160,8 +160,8 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * @param $tableName |
|
| 164 | - * @param $idName |
|
| 163 | + * @param string $tableName |
|
| 164 | + * @param string $idName |
|
| 165 | 165 | * @return int |
| 166 | 166 | */ |
| 167 | 167 | protected function getLastInsertID($tableName, $idName) { |