@@ -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; |
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\Tests; |
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\ChangeAddress; |
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 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | public function isOptedOutOfDonationReceipt(): bool { |
158 | - return ! $this->donationReceipt; |
|
158 | + return !$this->donationReceipt; |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | public function setDonationReceipt( bool $donationReceipt ): self { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | } |
172 | 172 | |
173 | 173 | public function hasAddressChangeData(): bool { |
174 | - return ! $this->isOptOutOnly; |
|
174 | + return !$this->isOptOutOnly; |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | } |
178 | 178 | \ No newline at end of file |
@@ -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\Domain\Model; |
6 | 6 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if ( $addressType !== self::ADDRESS_TYPE_PERSON && $addressType !== self::ADDRESS_TYPE_COMPANY ) { |
69 | 69 | throw new \InvalidArgumentException( 'Invalid address type' ); |
70 | 70 | } |
71 | - if( $externalIdType !== self::EXTERNAL_ID_TYPE_DONATION && $externalIdType !== self::EXTERNAL_ID_TYPE_MEMBERSHIP ) { |
|
71 | + if ( $externalIdType !== self::EXTERNAL_ID_TYPE_DONATION && $externalIdType !== self::EXTERNAL_ID_TYPE_MEMBERSHIP ) { |
|
72 | 72 | throw new \InvalidArgumentException( 'Invalid external reference type' ); |
73 | 73 | } |
74 | 74 | $this->createdAt = $createdAt ?? new \DateTime(); |
@@ -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\Domain; |
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\ChangeAddress; |
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 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | AddressChangeBuilder::setUuidGenerator( $this ); |
78 | 78 | $addressChange = $addressChange = AddressChangeBuilder::create()->forPerson()->forDonation( 1 )->build(); |
79 | 79 | |
80 | - $this->assertSame( 'c956688a-89e8-41b7-b93e-7e4cf3d6c826', (string) $addressChange->getCurrentIdentifier() ); |
|
80 | + $this->assertSame( 'c956688a-89e8-41b7-b93e-7e4cf3d6c826', (string)$addressChange->getCurrentIdentifier() ); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function generate(): string { |
@@ -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 | } |