Passed
Push — master ( 4d3a7d...14719f )
by Gabriel
01:41 queued 35s
created
tests/Unit/Domain/Model/AddressChangeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Tests\Unit\Domain\Model;
6 6
 
Please login to merge, or discard this patch.
src/Domain/Model/AddressChangeId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Domain\Model;
6 6
 
Please login to merge, or discard this patch.
src/Domain/Model/UuidGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Domain\Model;
6 6
 
Please login to merge, or discard this patch.
src/UseCases/ChangeAddress/ChangeAddressUseCase.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
 		if ( $request->hasAddressChangeData() ) {
28 28
 			try {
29 29
 				$addressChange->performAddressChange( $this->buildAddress( $request ), $newIdentifier );
30
-			}
31
-			catch ( ChangeAddressValidationException $e ) {
30
+			} catch ( ChangeAddressValidationException $e ) {
32 31
 				return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] );
33 32
 			}
34 33
 		}
Please login to merge, or discard this 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->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() );
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 				$addressChange->performAddressChange( $this->buildAddress( $request ), $newIdentifier );
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
 
Please login to merge, or discard this patch.
src/DataAccess/DoctrineAddressChangeRepository.php 1 patch
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\AddressChangeContext\DataAccess;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	}
18 18
 
19 19
 	public function getAddressChangeByUuid( string $uuid ): ?AddressChange {
20
-		return $this->entityManager->getRepository( AddressChange::class )->findOneBy( [ 'identifier.identifier' => $uuid ] );
20
+		return $this->entityManager->getRepository( AddressChange::class )->findOneBy( ['identifier.identifier' => $uuid] );
21 21
 	}
22 22
 
23 23
 	public function storeAddressChange( AddressChange $addressChange ): void {
Please login to merge, or discard this patch.
src/Infrastructure/RandomUuidGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Infrastructure;
6 6
 
Please login to merge, or discard this patch.
src/Domain/Model/AddressChangeBuilder.php 1 patch
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\AddressChangeContext\Domain\Model;
6 6
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		if ( self::$uuidGenerator === null ) {
82 82
 			self::$uuidGenerator = new RandomUuidGenerator();
83 83
 		}
84
-		return call_user_func( [ self::$uuidGenerator, 'generate' ] );
84
+		return call_user_func( [self::$uuidGenerator, 'generate'] );
85 85
 	}
86 86
 
87 87
 }
Please login to merge, or discard this patch.
src/Domain/Model/AddressChange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Domain\Model;
6 6
 
Please login to merge, or discard this patch.
src/UseCases/ChangeAddress/ChangeAddressRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.