@@ -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\AddressChange\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\UseCases\ChangeAddress; |
| 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\UseCases\ChangeAddress; |
| 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\Unit\UseCases; |
| 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\AddressChange\UseCases\ChangeAddress; |
| 6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $addressChange->performAddressChange( $this->buildAddress( $request ) ); |
| 27 | 27 | } |
| 28 | 28 | catch ( ChangeAddressValidationException $e ) { |
| 29 | - return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
|
| 29 | + return ChangeAddressResponse::newErrorResponse( [$e->getMessage()] ); |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
@@ -24,8 +24,7 @@ |
||
| 24 | 24 | if ( $request->hasAddressChangeData() ) { |
| 25 | 25 | try { |
| 26 | 26 | $addressChange->performAddressChange( $this->buildAddress( $request ) ); |
| 27 | - } |
|
| 28 | - catch ( ChangeAddressValidationException $e ) { |
|
| 27 | + } catch ( ChangeAddressValidationException $e ) { |
|
| 29 | 28 | return ChangeAddressResponse::newErrorResponse( [ $e->getMessage() ] ); |
| 30 | 29 | } |
| 31 | 30 | } |
@@ -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\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 |