@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\IL10N; |
| 29 | 29 | use OCP\IUser; |
| 30 | 30 | use OCP\IUserManager; |
| 31 | -use OCP\Util; |
|
| 32 | 31 | use Symfony\Component\EventDispatcher\EventDispatcher; |
| 33 | 32 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 34 | 33 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | class Updater { |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @param array $params |
|
| 32 | + * @param GenericEvent $params |
|
| 33 | 33 | */ |
| 34 | 34 | static public function renameHook(GenericEvent $params) { |
| 35 | 35 | self::renameChildren($params->getArgument('oldpath'), $params->getArgument('newpath')); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Erase versions of deleted file |
| 72 | - * @param array $params |
|
| 72 | + * @param GenericEvent $params |
|
| 73 | 73 | * |
| 74 | 74 | * This function is connected to the delete signal of OC_Filesystem |
| 75 | 75 | * cleanup the versions directory if the actual file gets deleted |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * mark file as "deleted" so that we can clean up the versions if the file is gone |
| 89 | - * @param array $params |
|
| 89 | + * @param GenericEvent $params |
|
| 90 | 90 | */ |
| 91 | 91 | public static function pre_remove_hook(GenericEvent $params) { |
| 92 | 92 | $path = $params->getArgument(\OC\Files\Filesystem::signal_param_path); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * rename/move versions of renamed/moved files |
| 100 | - * @param array $params array with oldpath and newpath |
|
| 100 | + * @param GenericEvent $params array with oldpath and newpath |
|
| 101 | 101 | * |
| 102 | 102 | * This function is connected to the rename signal of OC_Filesystem and adjust the name and location |
| 103 | 103 | * of the stored versions along the actual file |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * copy versions of copied files |
| 120 | - * @param array $params array with oldpath and newpath |
|
| 120 | + * @param GenericEvent $params array with oldpath and newpath |
|
| 121 | 121 | * |
| 122 | 122 | * This function is connected to the copy signal of OC_Filesystem and copies the |
| 123 | 123 | * the stored versions to the new location |