| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 2 | public function showForm( string $addressToken, FunFunFactory $ffFactory ): Response { |
|
| 19 | 2 | $addressChangeRepository = $ffFactory->getAddressChangeRepository(); |
|
| 20 | 2 | $addressChange = $addressChangeRepository->getAddressChangeByUuid( $addressToken ); |
|
| 21 | 2 | if ( $addressChange === null ) { |
|
| 22 | 1 | throw new AccessDeniedException(); |
|
| 23 | } |
||
| 24 | 1 | return new Response( |
|
| 25 | 1 | $ffFactory->getLayoutTemplate( 'Update_Address.html.twig' )->render( |
|
| 26 | [ |
||
| 27 | 1 | 'addressToken' => $addressToken, |
|
| 28 | 1 | 'isCompany' => $addressChange->isCompanyAddress() |
|
| 29 | ] |
||
| 33 | } |