| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function editAction(Request $request) |
||
| 28 | { |
||
| 29 | /** @var PersonInterface $person */ |
||
| 30 | $person = $this->getUser(); |
||
| 31 | |||
| 32 | /** @var AccountRecoveryService $accountRecoveryService */ |
||
| 33 | $accountRecoveryService = $this->get('lc.account_recovery'); |
||
| 34 | |||
| 35 | $recoveryData = $accountRecoveryService->getAccountRecoveryData($person); |
||
| 36 | $form = $this->createForm(AccountRecoveryDataType::class, $recoveryData); |
||
| 37 | $form->handleRequest($request); |
||
| 38 | if ($form->isValid()) { |
||
| 39 | $this->getDoctrine()->getManager()->flush(); |
||
| 40 | } |
||
| 41 | |||
| 42 | return [ |
||
| 43 | 'form' => $form->createView(), |
||
| 44 | ]; |
||
| 48 |