| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 92.31% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class UserDeletionHandler implements PlayerDeletionHandlerInterface |
||
| 15 | { |
||
| 16 | 2 | public function __construct(private SessionStringRepositoryInterface $sessionStringRepository, private UserProfileVisitorRepositoryInterface $userProfileVisitorRepository, private UserRepositoryInterface $userRepository, private UserLockRepositoryInterface $userLockRepository) {} |
|
| 17 | |||
| 18 | 1 | #[Override] |
|
| 19 | public function delete(User $user): void |
||
| 20 | { |
||
| 21 | 1 | $this->unlockUser($user); |
|
| 22 | 1 | $this->sessionStringRepository->truncate($user); |
|
| 23 | 1 | $this->userProfileVisitorRepository->truncateByUser($user); |
|
| 24 | |||
| 25 | // delete user |
||
| 26 | 1 | $this->userRepository->delete($user); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | private function unlockUser(User $user): void |
|
| 40 | } |
||
| 41 | } |
||
| 42 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths