Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
53 | public function register() { |
||
54 | 1 | $postDelete = function ($user) { |
|
55 | $this->logger->debug('Deleting all jobs for user "{user}" after user deletion (Hook).', [ |
||
56 | 'user' => $user->getUID() |
||
57 | ]); |
||
58 | $this->ocrJobMapper->deleteAllForUser($user->getUID()); |
||
59 | 1 | }; |
|
60 | 1 | $this->userManager->listen('\OC\User', 'postDelete', $postDelete); |
|
61 | } |
||
62 | } |