@@ -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\Frontend\Infrastructure\Payment; |
| 6 | 6 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class PayPalPaymentNotificationVerifier implements PaymentNotificationVerifier { |
| 16 | 16 | |
| 17 | - private const ALLOWED_CURRENCY_CODES = [ 'EUR' ]; |
|
| 17 | + private const ALLOWED_CURRENCY_CODES = ['EUR']; |
|
| 18 | 18 | private const NOTIFICATION_TYPES_WITH_DIFFERENT_CURRENCY_FIELDS = [ |
| 19 | 19 | 'recurring_payment_suspended_due_to_max_failed_payment' |
| 20 | 20 | ]; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | 'POST', |
| 56 | 56 | $this->baseUrl, |
| 57 | 57 | [ |
| 58 | - RequestOptions::FORM_PARAMS => array_merge( [ 'cmd' => '_notify-validate' ], $request ), |
|
| 58 | + RequestOptions::FORM_PARAMS => array_merge( ['cmd' => '_notify-validate'], $request ), |
|
| 59 | 59 | RequestOptions::HTTP_ERRORS => false // disable throwing exceptions, return status instead |
| 60 | 60 | ] |
| 61 | 61 | ); |