Passed
Push — main ( b51d0b...b7b8b7 )
by Corinna
55s queued 20s
created
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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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 {
Please login to merge, or discard this patch.
tests/Unit/UseCases/ReadAddressChangeUseCaseTest.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\UseCases;
6 6
 
Please login to merge, or discard this patch.
src/UseCases/ReadAddressChange/AddressChangeData.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\ReadAddressChange;
6 6
 
Please login to merge, or discard this patch.
src/UseCases/ReadAddressChange/ReadAddressChangeUseCase.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\ReadAddressChange;
6 6
 
Please login to merge, or discard this patch.
src/AddressChangeContextFactory.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;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/Domain/Model/AddressType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ScalarTypeConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare( strict_types=1 );
2
+declare(strict_types=1);
3 3
 
4 4
 namespace WMDE\Fundraising\AddressChangeContext;
5 5
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		return strval( self::assertScalarType( $value ) );
26 26
 	}
27 27
 
28
-	private static function assertScalarType( mixed $value ): int|string|bool|float {
28
+	private static function assertScalarType( mixed $value ): int | string | bool | float {
29 29
 		if ( is_scalar( $value ) ) {
30 30
 			return $value;
31 31
 		}
Please login to merge, or discard this patch.
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.
tests/Unit/Domain/Model/AddressChangeIdTest.php 1 patch
Spacing   +6 added lines, -6 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\Tests\Unit\Domain\Model;
6 6
 
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
 	 * @return \Generator<string[]>
32 32
 	 */
33 33
 	public static function invalidUUIDProvider(): \Generator {
34
-		yield [ '' ];
35
-		yield [ 'just a string' ];
36
-		yield [ '1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444' ];
37
-		yield [ 'e-f-f-e-d' ];
38
-		yield [ 'This-is-not-a-UUID' ];
34
+		yield [''];
35
+		yield ['just a string'];
36
+		yield ['1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444'];
37
+		yield ['e-f-f-e-d'];
38
+		yield ['This-is-not-a-UUID'];
39 39
 	}
40 40
 }
Please login to merge, or discard this patch.