@@ -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 | |
@@ -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\DataAccess\Migrations; |
| 6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function down( Schema $schema ): void { |
| 28 | 28 | $addressChange = $schema->getTable( 'address_change' ); |
| 29 | - $addressChange->modifyColumn( 'current_identifier', [ 'notnull' => false ] ); |
|
| 30 | - $addressChange->modifyColumn( 'previous_identifier', [ 'notnull' => false ] ); |
|
| 29 | + $addressChange->modifyColumn( 'current_identifier', ['notnull' => false] ); |
|
| 30 | + $addressChange->modifyColumn( 'previous_identifier', ['notnull' => false] ); |
|
| 31 | 31 | } |
| 32 | 32 | } |