Completed
Pull Request — master (#1872)
by Gabriel
64:08
created
src/Infrastructure/AddressType.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\Frontend\Infrastructure;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 	public static function presentationAddressTypeToDomainAddressType( string $presentationAddressType ): string {
31 31
 		if ( !isset( self::PRESENTATION_TO_DOMAIN[$presentationAddressType] ) ) {
32
-			throw new \UnexpectedValueException( sprintf( 'Unexpected Presentation Address Type: %s', $presentationAddressType, ) );
32
+			throw new \UnexpectedValueException( sprintf( 'Unexpected Presentation Address Type: %s', $presentationAddressType,) );
33 33
 		}
34 34
 		return self::PRESENTATION_TO_DOMAIN[$presentationAddressType];
35 35
 	}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	public static function donorToPresentationAddressType( Donor $donor ): string {
38 38
 		$invertedMap = array_flip( self::PRESENTATION_TO_DOMAIN );
39 39
 		if ( !isset( $invertedMap[$donor->getDonorType()] ) ) {
40
-			throw new \UnexpectedValueException( sprintf( 'Unexpected Donor Type: %s', $donor->getDonorType(), ) );
40
+			throw new \UnexpectedValueException( sprintf( 'Unexpected Donor Type: %s', $donor->getDonorType(),) );
41 41
 		}
42 42
 		return $invertedMap[$donor->getDonorType()];
43 43
 	}
Please login to merge, or discard this patch.