@@ -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')); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Erase versions of deleted file |
| 74 | - * @param array $params |
|
| 74 | + * @param GenericEvent $params |
|
| 75 | 75 | * |
| 76 | 76 | * This function is connected to the delete signal of OC_Filesystem |
| 77 | 77 | * cleanup the versions directory if the actual file gets deleted |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * rename/move versions of renamed/moved files |
| 102 | - * @param array $params array with oldpath and newpath |
|
| 102 | + * @param GenericEvent $params array with oldpath and newpath |
|
| 103 | 103 | * |
| 104 | 104 | * This function is connected to the rename signal of OC_Filesystem and adjust the name and location |
| 105 | 105 | * 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 |