[CS][DX] Refactor

This commit is contained in:
Sylius Bot 2024-11-06 02:24:10 +00:00 committed by GitHub
parent baec1a6664
commit 3c56e99bd3
4 changed files with 5 additions and 5 deletions

View file

@ -69,7 +69,7 @@ final class PaymentRequestPayResponseProvider implements PayResponseProviderInte
private function getPaymentRequest(
PaymentInterface $payment,
PaymentMethodInterface $paymentMethod
PaymentMethodInterface $paymentMethod,
): PaymentRequestInterface {
$paymentRequest = $this->paymentRequestFactory->create($payment, $paymentMethod);
$action = $this->defaultActionProvider->getAction($paymentRequest);
@ -78,7 +78,7 @@ final class PaymentRequestPayResponseProvider implements PayResponseProviderInte
$existingPaymentRequest = $this->paymentRequestRepository->findOneByActionPaymentAndMethod(
$action,
$payment,
$paymentMethod
$paymentMethod,
);
if (null === $existingPaymentRequest || $this->finalizedPaymentRequestChecker->isFinal($existingPaymentRequest)) {

View file

@ -29,7 +29,7 @@ final class HttpResponseProcessor implements HttpResponseProcessorInterface
public function process(
RequestConfiguration $requestConfiguration,
PaymentRequestInterface $paymentRequest
PaymentRequestInterface $paymentRequest,
): ?Response {
$this->paymentRequestAnnouncer->dispatchPaymentRequestCommand($paymentRequest);

View file

@ -21,6 +21,6 @@ interface HttpResponseProcessorInterface
{
public function process(
RequestConfiguration $requestConfiguration,
PaymentRequestInterface $paymentRequest
PaymentRequestInterface $paymentRequest,
): ?Response;
}

View file

@ -44,6 +44,6 @@ interface PaymentRequestRepositoryInterface extends RepositoryInterface
public function findOneByActionPaymentAndMethod(
string $action,
PaymentInterface $payment,
PaymentMethodInterface $paymentMethod
PaymentMethodInterface $paymentMethod,
): ?PaymentRequestInterface;
}