@@ -25,8 +25,7 @@ |
||
25 | 25 | if ( !$request->isOnlyOptInDonationReceiptRequest() ) { |
26 | 26 | $addressChange->performAddressChange( $this->buildAddress( $request ) ); |
27 | 27 | } |
28 | - } |
|
29 | - catch ( ChangeAddressValidationException $e ) { |
|
28 | + } catch ( ChangeAddressValidationException $e ) { |
|
30 | 29 | return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
31 | 30 | } |
32 | 31 |
@@ -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\AddressChange\UseCases\ChangeAddress; |
6 | 6 | |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | } |
28 | 28 | } |
29 | 29 | catch ( ChangeAddressValidationException $e ) { |
30 | - return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
|
30 | + return ChangeAddressResponse::newErrorResponse( [$e->getMessage()] ); |
|
31 | 31 | } |
32 | 32 | |
33 | - if ( ! $request->isOptedIntoDonationReceipt() ) { |
|
33 | + if ( !$request->isOptedIntoDonationReceipt() ) { |
|
34 | 34 | $addressChange->optOutOfDonationReceipt(); |
35 | 35 | } |
36 | 36 |