Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function addSubject(FormEvent $event) |
||
35 | { |
||
36 | $data = $event->getData(); |
||
37 | $subject = null; |
||
38 | |||
39 | if ($data instanceof ResendInterface) { |
||
40 | $subject = $this->confirmation->findSubject($data->getSubjectValue()); |
||
41 | } |
||
42 | |||
43 | if ($data instanceof VerificationInterface) { |
||
44 | $subject = $this->confirmation->findSubjectWithToken($data->getToken()); |
||
45 | } |
||
46 | |||
47 | $data->setSubject($subject); |
||
48 | } |
||
49 | } |
||
50 |