@@ -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 | |
@@ -31,11 +31,11 @@ discard block |
||
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 | |
41 | 41 | public function testCanCheckEqualityWithStrings(): void { |
@@ -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 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | return $this->identifier; |
26 | 26 | } |
27 | 27 | |
28 | - public function equals( string|AddressChangeId $id ): bool { |
|
28 | + public function equals( string | AddressChangeId $id ): bool { |
|
29 | 29 | return is_string( $id ) ? $this->identifier === $id : $this->identifier === $id->identifier; |
30 | 30 | } |
31 | 31 |