@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\UseCases\ChangeAddress; |
6 | 6 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | public function changeAddress( ChangeAddressRequest $request ): ChangeAddressResponse { |
21 | 21 | $addressChange = $this->addressChangeRepository->getAddressChangeByUuid( $request->identifier ); |
22 | 22 | if ( $addressChange === null ) { |
23 | - return ChangeAddressResponse::newErrorResponse( [ ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND ] ); |
|
23 | + return ChangeAddressResponse::newErrorResponse( [ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND] ); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | $newIdentifier = AddressChangeId::fromString( AddressChangeBuilder::generateUuid() ); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | try { |
29 | 29 | $addressChange->performAddressChange( $this->buildAddress( $request ), $newIdentifier ); |
30 | 30 | } catch ( ChangeAddressValidationException $e ) { |
31 | - return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
|
31 | + return ChangeAddressResponse::newErrorResponse( [$e->getMessage()] ); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 |