@@ -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; |
| 6 | 6 | |
@@ -37,8 +37,7 @@ |
||
| 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(); |
@@ -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\Data; |
| 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\Tests\Unit\Domain\Model; |
| 6 | 6 | |
@@ -103,10 +103,10 @@ discard block |
||
| 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 | } |
@@ -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\AddressChange\DataAccess; |
| 6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
| 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 { |
@@ -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\AddressChange\Domain\Model; |
| 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\Tests\Unit\Domain\Model; |
| 6 | 6 | |
@@ -76,20 +76,20 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | public function emptyPersonFieldTestProvider(): \Generator { |
| 79 | - yield [ 'Salutation', '', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
| 80 | - yield [ 'First Name', 'Herr', 'Prof. Dr.', '', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
| 81 | - yield [ 'Last Name', 'Herr', 'Prof. Dr.', 'Testdude', '', 'Test Address 123', '12345', 'Test City', 'Test Country' ]; |
|
| 82 | - yield [ 'Address', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', '', '12345', 'Test City', 'Test Country' ]; |
|
| 83 | - yield [ 'Post Code', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '', 'Test City', 'Test Country' ]; |
|
| 84 | - yield [ 'City', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', '', 'Test Country' ]; |
|
| 85 | - yield [ 'Country', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', '' ]; |
|
| 79 | + yield ['Salutation', '', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
| 80 | + yield ['First Name', 'Herr', 'Prof. Dr.', '', 'Testfamily', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
| 81 | + yield ['Last Name', 'Herr', 'Prof. Dr.', 'Testdude', '', 'Test Address 123', '12345', 'Test City', 'Test Country']; |
|
| 82 | + yield ['Address', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', '', '12345', 'Test City', 'Test Country']; |
|
| 83 | + yield ['Post Code', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '', 'Test City', 'Test Country']; |
|
| 84 | + yield ['City', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', '', 'Test Country']; |
|
| 85 | + yield ['Country', 'Herr', 'Prof. Dr.', 'Testdude', 'Testfamily', 'Test Address 123', '12345', 'Test City', '']; |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | public function emptyCompanyFieldTestProvider(): \Generator { |
| 89 | - yield [ 'Company', '', 'Test Street 123', '12345', 'Test City', 'Test Country' ]; |
|
| 90 | - yield [ 'Address', 'Test Company', '', '12345', 'Test City', 'Test Country' ]; |
|
| 91 | - yield [ 'Post Code', 'Test Company', 'Test Street 123', '', 'Test City', 'Test Country' ]; |
|
| 92 | - yield [ 'City', 'Test Company', 'Test Street 123', '12345', '', 'Test Country' ]; |
|
| 93 | - yield [ 'Country', 'Test Company', 'Test Street 123', '12345', 'Test City', '' ]; |
|
| 89 | + yield ['Company', '', 'Test Street 123', '12345', 'Test City', 'Test Country']; |
|
| 90 | + yield ['Address', 'Test Company', '', '12345', 'Test City', 'Test Country']; |
|
| 91 | + yield ['Post Code', 'Test Company', 'Test Street 123', '', 'Test City', 'Test Country']; |
|
| 92 | + yield ['City', 'Test Company', 'Test Street 123', '12345', '', 'Test Country']; |
|
| 93 | + yield ['Country', 'Test Company', 'Test Street 123', '12345', 'Test City', '']; |
|
| 94 | 94 | } |
| 95 | 95 | } |
@@ -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\Domain\Model; |
| 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\AddressChange\Domain\Model; |
| 6 | 6 | |