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