Passed
Push — main ( 0a00da...09db13 )
by
unknown
50s queued 13s
created
src/UseCases/ChangeAddress/ChangeAddressUseCase.php 1 patch
Spacing   +3 added lines, -3 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\AddressChangeContext\UseCases\ChangeAddress;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.