Completed
Pull Request — master (#3)
by Tonina
64:44
created
src/UseCases/ChangeAddress/ChangeAddressUseCase.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			}
30 30
 		}
31 31
 		catch ( ChangeAddressValidationException $e ) {
32
-			return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] );
32
+			return ChangeAddressResponse::newErrorResponse( [$e->getMessage()] );
33 33
 		}
34 34
 
35 35
 		$this->addressChangeRepository->storeAddressChange( $addressChange );
Please login to merge, or discard this 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.