| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function delete(UserInterface $user): void |
||
| 34 | { |
||
| 35 | if (!$this->voter->canDelete($user)) { |
||
| 36 | $this->getLogger()->info("User can't be deleted.", ['user_id' => (string) $user->getId()]); |
||
| 37 | |||
| 38 | return; |
||
| 39 | } |
||
| 40 | $this->getLogger()->info('Deleting user', ['user_id' => (string) $user->getId()]); |
||
| 41 | |||
| 42 | $this->deleter->delete($user); |
||
| 43 | } |
||
| 45 |