Completed
Pull Request — master (#3)
by Tonina
64:44
created
tests/TestEnvironment.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/UseCases/ChangeAddress/ChangeAddressUseCase.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,12 +23,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.