Completed
Pull Request — master (#3)
by Tonina
60:42
created
tests/TestEnvironment.php 2 patches
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;
6 6
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 
38 38
 		try {
39 39
 			$schema->dropSchema();
40
-		}
41
-		catch ( \Exception $ex ) {
40
+		} catch ( \Exception $ex ) {
42 41
 		}
43 42
 
44 43
 		$schema->createSchema();
Please login to merge, or discard this patch.
tests/bootstrap.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
 if ( PHP_SAPI !== 'cli' ) {
6 6
 	die( 'Not an entry point' );
Please login to merge, or discard this patch.
tests/Unit/DataAccess/DoctrineAddressChangeRepositoryTest.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\DataAccess;
6 6
 
Please login to merge, or discard this patch.
src/Domain/AddressChangeRepository.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\AddressChange\Domain;
6 6
 
Please login to merge, or discard this patch.
tests/AddressChangeContextFactory.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;
6 6
 
Please login to merge, or discard this patch.
tests/DatabaseSchema.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;
6 6
 
Please login to merge, or discard this patch.
tests/Data/ValidAddress.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\Data;
6 6
 
Please login to merge, or discard this patch.
tests/Unit/Domain/Model/AddressChangeTest.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
 
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
 	}
104 104
 
105 105
 	public function invalidUUIDProvider(): \Generator {
106
-		yield [ '' ];
107
-		yield [ 'just a string' ];
108
-		yield [ '1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444' ];
109
-		yield [ 'e-f-f-e-d' ];
110
-		yield [ 'This-is-not-a-UUID' ];
106
+		yield [''];
107
+		yield ['just a string'];
108
+		yield ['1111222233334444-1111222233334444-1111222233334444-1111222233334444-1111222233334444'];
109
+		yield ['e-f-f-e-d'];
110
+		yield ['This-is-not-a-UUID'];
111 111
 	}
112 112
 }
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\AddressChange\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' => $uuid ] );
20
+		return $this->entityManager->getRepository( AddressChange::class )->findOneBy( ['identifier' => $uuid] );
21 21
 	}
22 22
 
23 23
 	public function storeAddressChange( AddressChange $addressChange ): void {
Please login to merge, or discard this patch.