@@ -37,8 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | try { |
| 39 | 39 | $schema->dropSchema(); |
| 40 | - } |
|
| 41 | - catch ( \Exception $ex ) { |
|
| 40 | + } catch ( \Exception $ex ) { |
|
| 42 | 41 | } |
| 43 | 42 | |
| 44 | 43 | $schema->createSchema(); |
@@ -23,12 +23,10 @@ |
||
| 23 | 23 | try { |
| 24 | 24 | if ( $request->isOnlyOptInDonationReceiptRequest() ) { |
| 25 | 25 | $addressChange->optOutOfDonationReceipt( $request->isOptedIntoDonationReceipt() ); |
| 26 | - } |
|
| 27 | - else { |
|
| 26 | + } else { |
|
| 28 | 27 | $addressChange->performAddressChange( $this->buildAddress( $request ) ); |
| 29 | 28 | } |
| 30 | - } |
|
| 31 | - catch ( ChangeAddressValidationException $e ) { |
|
| 29 | + } catch ( ChangeAddressValidationException $e ) { |
|
| 32 | 30 | return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
| 33 | 31 | } |
| 34 | 32 | |