diff --git a/src/Bus/Command/CreateReferenceForRefund.php b/src/Bus/Command/CreateReferenceForRefund.php index 4bfc3e56..e61af010 100644 --- a/src/Bus/Command/CreateReferenceForRefund.php +++ b/src/Bus/Command/CreateReferenceForRefund.php @@ -29,8 +29,7 @@ public function __construct( string $refundReference, RefundPaymentInterface $refundPayment, PaymentInterface $payment - ) - { + ) { $details = $payment->getDetails(); Assert::keyExists($details, 'pspReference', 'Payment pspReference is not present'); diff --git a/src/Controller/Shop/DropinConfigurationAction.php b/src/Controller/Shop/DropinConfigurationAction.php index bfe8bcad..09cf98fc 100644 --- a/src/Controller/Shop/DropinConfigurationAction.php +++ b/src/Controller/Shop/DropinConfigurationAction.php @@ -62,8 +62,7 @@ public function __invoke( Request $request, string $code, ?string $orderToken = null - ): JsonResponse - { + ): JsonResponse { $order = $this->getOrder($orderToken); if (null === $order || null === $order->getId()) { diff --git a/src/Controller/Shop/RemoveStoredTokenAction.php b/src/Controller/Shop/RemoveStoredTokenAction.php index 17411e32..caf258e2 100644 --- a/src/Controller/Shop/RemoveStoredTokenAction.php +++ b/src/Controller/Shop/RemoveStoredTokenAction.php @@ -65,8 +65,7 @@ public function __invoke( string $code, string $paymentReference, Request $request - ): Response - { + ): Response { /** * @var ?CustomerInterface $customer */ diff --git a/src/Factory/LogFactory.php b/src/Factory/LogFactory.php index 8c767bc8..e3a27e4a 100644 --- a/src/Factory/LogFactory.php +++ b/src/Factory/LogFactory.php @@ -26,8 +26,7 @@ public function create( string $message, int $level, int $errorCode - ): LogInterface - { + ): LogInterface { /** @var LogInterface $log */ $log = $this->createNew(); diff --git a/src/Form/Type/CredentialType.php b/src/Form/Type/CredentialType.php index 7ba482b4..e5a0c20f 100644 --- a/src/Form/Type/CredentialType.php +++ b/src/Form/Type/CredentialType.php @@ -25,8 +25,7 @@ public function buildView( FormView $view, FormInterface $form, array $options - ): void - { + ): void { if (0 === strlen((string) $view->vars['value']) || $form->isSubmitted()) { return; } diff --git a/src/Form/Type/PaymentMethodChoiceType.php b/src/Form/Type/PaymentMethodChoiceType.php index 8f2b6de9..568ba095 100644 --- a/src/Form/Type/PaymentMethodChoiceType.php +++ b/src/Form/Type/PaymentMethodChoiceType.php @@ -33,8 +33,7 @@ public function buildView( FormView $view, FormInterface $form, array $options - ): void - { + ): void { parent::buildView($view, $form, $options); $view->vars['environment'] = $options['environment']; $view->vars['payment_methods'] = $options['payment_methods']; diff --git a/src/Grid/Filter/LoggerLevel.php b/src/Grid/Filter/LoggerLevel.php index 90bdfd52..2156809e 100644 --- a/src/Grid/Filter/LoggerLevel.php +++ b/src/Grid/Filter/LoggerLevel.php @@ -14,8 +14,7 @@ public function apply( string $name, $data, array $options - ): void - { + ): void { /** @psalm-suppress MixedArrayAccess */ $dataSource->restrict($dataSource->getExpressionBuilder()->equals('level', $data['loggerLevel'])); } diff --git a/src/Normalizer/AbstractPaymentNormalizer.php b/src/Normalizer/AbstractPaymentNormalizer.php index 7ed66dc9..6998b294 100644 --- a/src/Normalizer/AbstractPaymentNormalizer.php +++ b/src/Normalizer/AbstractPaymentNormalizer.php @@ -20,8 +20,7 @@ public function supportsNormalization( $data, string $format = null, array $context = [] - ): bool - { + ): bool { return isset($context[self::NORMALIZER_ENABLED]); } } diff --git a/src/Normalizer/AdditionalDetailsNormalizer.php b/src/Normalizer/AdditionalDetailsNormalizer.php index ee6b67ee..10495d34 100644 --- a/src/Normalizer/AdditionalDetailsNormalizer.php +++ b/src/Normalizer/AdditionalDetailsNormalizer.php @@ -45,8 +45,7 @@ public function supportsNormalization( $data, string $format = null, array $context = [] - ): bool - { + ): bool { return parent::supportsNormalization($data, $format, $context) && $data instanceof OrderInterface; } @@ -82,8 +81,7 @@ public function normalize( $object, string $format = null, array $context = [] - ): array - { + ): array { Assert::isInstanceOf($object, OrderInterface::class); $customer = $object->getCustomer(); diff --git a/src/Normalizer/AddressNormalizer.php b/src/Normalizer/AddressNormalizer.php index 985a4a1c..e753a198 100644 --- a/src/Normalizer/AddressNormalizer.php +++ b/src/Normalizer/AddressNormalizer.php @@ -32,8 +32,7 @@ public function supportsNormalization( $data, string $format = null, array $context = [] - ): bool - { + ): bool { return parent::supportsNormalization($data, $format, $context) && $data instanceof AddressInterface; } @@ -44,8 +43,7 @@ public function normalize( $object, string $format = null, array $context = [] - ): array - { + ): array { Assert::isInstanceOf($object, AddressInterface::class); $address = [ diff --git a/src/Normalizer/OrderItemToLineItemNormalizer.php b/src/Normalizer/OrderItemToLineItemNormalizer.php index ad9d25d0..c142c7eb 100644 --- a/src/Normalizer/OrderItemToLineItemNormalizer.php +++ b/src/Normalizer/OrderItemToLineItemNormalizer.php @@ -46,8 +46,7 @@ public function supportsNormalization( $data, string $format = null, array $context = [] - ): bool - { + ): bool { return parent::supportsNormalization($data, $format, $context) && $data instanceof OrderItemInterface; } @@ -58,8 +57,7 @@ public function normalize( $object, string $format = null, array $context = [] - ): array - { + ): array { Assert::isInstanceOf($object, OrderItemInterface::class); $locale = $this->getLocale(); diff --git a/src/Processor/PaymentResponseProcessor.php b/src/Processor/PaymentResponseProcessor.php index 91fb818b..e5f155f7 100644 --- a/src/Processor/PaymentResponseProcessor.php +++ b/src/Processor/PaymentResponseProcessor.php @@ -40,8 +40,7 @@ private function processForPaymentSpecified( string $code, Request $request, PaymentInterface $payment - ): ?string - { + ): ?string { foreach ($this->processors as $processor) { if (!$processor->accepts($request, $payment)) { continue; @@ -57,8 +56,7 @@ public function process( string $code, Request $request, ?PaymentInterface $payment - ): string - { + ): string { $result = null; if (null !== $payment) { $result = $this->processForPaymentSpecified($code, $request, $payment); diff --git a/src/Processor/PaymentResponseProcessor/AbstractProcessor.php b/src/Processor/PaymentResponseProcessor/AbstractProcessor.php index 33370ba8..80c4ff96 100644 --- a/src/Processor/PaymentResponseProcessor/AbstractProcessor.php +++ b/src/Processor/PaymentResponseProcessor/AbstractProcessor.php @@ -48,8 +48,7 @@ protected function addFlash( Request $request, string $type, string $message - ): void - { + ): void { if (null !== $this->translator) { $message = $this->translator->trans($message); } diff --git a/src/Processor/PaymentResponseProcessor/FailedResponseProcessor.php b/src/Processor/PaymentResponseProcessor/FailedResponseProcessor.php index 0fc32624..bb99bd82 100644 --- a/src/Processor/PaymentResponseProcessor/FailedResponseProcessor.php +++ b/src/Processor/PaymentResponseProcessor/FailedResponseProcessor.php @@ -69,8 +69,7 @@ public function process( string $code, Request $request, PaymentInterface $payment - ): string - { + ): string { $this->addFlash($request, self::FLASH_ERROR, self::LABEL_PAYMENT_FAILED); $this->dispatchPaymentStatusReceived($payment); diff --git a/src/Processor/PaymentResponseProcessor/FallbackResponseProcessor.php b/src/Processor/PaymentResponseProcessor/FallbackResponseProcessor.php index 273fe24c..ad5bbe48 100644 --- a/src/Processor/PaymentResponseProcessor/FallbackResponseProcessor.php +++ b/src/Processor/PaymentResponseProcessor/FallbackResponseProcessor.php @@ -35,8 +35,7 @@ public function process( string $code, Request $request, PaymentInterface $payment - ): string - { + ): string { $tokenValue = $request->query->get('tokenValue'); if (null === $tokenValue) { $this->setActiveOrderViaPayment($request, $payment); diff --git a/src/Processor/PaymentResponseProcessor/PaymentProcessingResponseProcessor.php b/src/Processor/PaymentResponseProcessor/PaymentProcessingResponseProcessor.php index 0ce0b667..e7ba71f5 100644 --- a/src/Processor/PaymentResponseProcessor/PaymentProcessingResponseProcessor.php +++ b/src/Processor/PaymentResponseProcessor/PaymentProcessingResponseProcessor.php @@ -48,8 +48,7 @@ public function process( string $code, Request $request, PaymentInterface $payment - ): string - { + ): string { $this->dispatchPaymentStatusReceived($payment); $this->addFlash($request, self::FLASH_INFO, self::LABEL_PROCESSING); diff --git a/src/Processor/PaymentResponseProcessor/SuccessfulResponseProcessor.php b/src/Processor/PaymentResponseProcessor/SuccessfulResponseProcessor.php index b55adeff..1be2fbc9 100644 --- a/src/Processor/PaymentResponseProcessor/SuccessfulResponseProcessor.php +++ b/src/Processor/PaymentResponseProcessor/SuccessfulResponseProcessor.php @@ -54,8 +54,7 @@ public function process( string $code, Request $request, PaymentInterface $payment - ): string - { + ): string { $targetRoute = self::THANKS_ROUTE_NAME; $this->dispatchPaymentStatusReceived($payment); diff --git a/src/Resolver/Notification/NotificationResolver/PaymentNotificationResolver.php b/src/Resolver/Notification/NotificationResolver/PaymentNotificationResolver.php index 73d4384a..fb08723e 100644 --- a/src/Resolver/Notification/NotificationResolver/PaymentNotificationResolver.php +++ b/src/Resolver/Notification/NotificationResolver/PaymentNotificationResolver.php @@ -38,8 +38,7 @@ private function fetchPayment( string $paymentCode, string $reference, ?string $originalReference - ): PaymentInterface - { + ): PaymentInterface { try { $reference = $this->adyenReferenceRepository->getOneByCodeAndReference( $paymentCode, diff --git a/src/Resolver/Notification/Serializer/NotificationItemNormalizer.php b/src/Resolver/Notification/Serializer/NotificationItemNormalizer.php index 3176e69c..004c5154 100644 --- a/src/Resolver/Notification/Serializer/NotificationItemNormalizer.php +++ b/src/Resolver/Notification/Serializer/NotificationItemNormalizer.php @@ -35,8 +35,7 @@ public function denormalize( string $type, string $format = null, array $context = [] - ) - { + ) { if (!isset($data[self::DENORMALIZATION_PROCESSED_FLAG]) && is_array($data)) { $data['eventCode'] = strtolower((string) $data['eventCode']); $data[self::DENORMALIZATION_PROCESSED_FLAG] = true; @@ -49,8 +48,7 @@ public function supportsDenormalization( $data, string $type, string $format = null - ): bool - { + ): bool { return NotificationItemData::class === $type && isset($data['eventCode'], $data['paymentMethod']) @@ -77,8 +75,7 @@ public function normalize( $object, string $format = null, array $context = [] - ) - { + ) { if (!isset($context[$this->getNormalizationMarking($object)])) { $context[$this->getNormalizationMarking($object)] = true; } @@ -99,8 +96,7 @@ public function supportsNormalization( $data, string $format = null, array $context = [] - ) - { + ) { return $data instanceof NotificationItemData && !isset($context[$this->getNormalizationMarking($data)]) diff --git a/src/Validator/Constraint/AdyenCredentialsValidator.php b/src/Validator/Constraint/AdyenCredentialsValidator.php index 9f054487..f24218e6 100644 --- a/src/Validator/Constraint/AdyenCredentialsValidator.php +++ b/src/Validator/Constraint/AdyenCredentialsValidator.php @@ -62,8 +62,7 @@ public function isApiKeyValid( string $environment, ?string $merchantAccount, ?string $apiKey - ): bool - { + ): bool { $this->validateArguments($merchantAccount, $apiKey); $payload = [