Completed
Pull Request — master (#10)
by Gabriel
60:20
created
src/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;
6 6
 
Please login to merge, or discard this patch.
tests/TestAddressChangeContextFactory.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.
src/UseCases/ChangeAddress/ChangeAddressResponse.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.
src/UseCases/ChangeAddress/ChangeAddressRequest.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
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Domain/Model/AddressChange.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
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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();
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\AddressChangeContext\Domain;
6 6
 
Please login to merge, or discard this patch.
src/UseCases/ChangeAddress/ChangeAddressValidationException.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.
tests/Unit/Domain/Model/AddressChangeBuilderTest.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\Tests\Unit\Domain\Model;
6 6
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
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 {
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
 
@@ -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.