This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
25
{
26
/**
27
* The user repository.
28
*
29
* @var UserRepository
30
*/
31
private $repository;
32
33
/**
34
* Constructor.
35
*
36
* @param UserRepository $aRepository The user repository
37
*/
38
public function __construct(UserRepository $aRepository)
39
{
40
$this->repository = $aRepository;
41
}
42
43
/**
44
* Handles the given command.
45
*
46
* @param ResendInvitationUserCommand $aCommand The command
47
*
48
* @throws UserDoesNotExistException when the user does not exist
49
*/
50
public function __invoke(ResendInvitationUserCommand $aCommand)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.