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...
9
{
10
11
/**
12
* The form builder.
13
*
14
* @var RegisterFormBuilder
15
*/
16
protected $builder;
17
18
/**
19
* Create a new HandleEmailRegistration instance.
20
*
21
* @param RegisterFormBuilder $builder
22
*/
23
public function __construct(RegisterFormBuilder $builder)
24
{
25
$this->builder = $builder;
26
}
27
28
/**
29
* Handle the command.
30
*
31
* @param UserActivator $activator
32
* @param MessageBag $messages
33
*/
34
public function handle(UserActivator $activator, MessageBag $messages)
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.