@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare( strict_types=1 ); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\UseCases; |
5 | 5 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\UseCases; |
6 | 6 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $useCase = new ChangeAddressUseCase( $mockAddressChangeRepository ); |
50 | 50 | $response = $useCase->changeAddress( $this->newChangeAddressRequest() ); |
51 | 51 | $this->assertFalse( $response->isSuccess() ); |
52 | - $this->assertEquals( [ ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND ], $response->getErrors() ); |
|
52 | + $this->assertEquals( [ChangeAddressResponse::ERROR_ADDRESS_NOT_FOUND], $response->getErrors() ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function testGivenValidOptOutOnlyChangeRequest_successResponseIsReturned(): void { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\DataAccess; |
6 | 6 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | public function getAddressChangeByUuid( string $uuid ): ?AddressChange { |
21 | - return $this->entityManager->getRepository( AddressChange::class )->findOneBy( [ 'identifier.identifier' => $uuid ] ); |
|
21 | + return $this->entityManager->getRepository( AddressChange::class )->findOneBy( ['identifier.identifier' => $uuid] ); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function getAddressChangeByUuids( string $currentIdentifier, string $previousIdentifier ): ?AddressChange { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\Tests\Unit\UseCases; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\UseCases\ReadAddressChange; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext\UseCases\ReadAddressChange; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
20 | 20 | public function changeAddress( ChangeAddressRequest $request ): ChangeAddressResponse { |
21 | 21 | $addressChange = $this->addressChangeRepository->getAddressChangeByUuid( $request->getIdentifier() ); |
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 |
||
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 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare( strict_types = 1 ); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace WMDE\Fundraising\AddressChangeContext; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @return string[] |
23 | 23 | */ |
24 | 24 | public function getDoctrineMappingPaths(): array { |
25 | - return [ self::DOCTRINE_CLASS_MAPPING_DIRECTORY ]; |
|
25 | + return [self::DOCTRINE_CLASS_MAPPING_DIRECTORY]; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare( strict_types=1 ); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace WMDE\Fundraising\AddressChangeContext\Domain\Model; |
5 | 5 |