mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[CS][DX] Refactor
This commit is contained in:
parent
baec1a6664
commit
3c56e99bd3
4 changed files with 5 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ final class HttpResponseProcessor implements HttpResponseProcessorInterface
|
|||
|
||||
public function process(
|
||||
RequestConfiguration $requestConfiguration,
|
||||
PaymentRequestInterface $paymentRequest
|
||||
PaymentRequestInterface $paymentRequest,
|
||||
): ?Response {
|
||||
$this->paymentRequestAnnouncer->dispatchPaymentRequestCommand($paymentRequest);
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ interface HttpResponseProcessorInterface
|
|||
{
|
||||
public function process(
|
||||
RequestConfiguration $requestConfiguration,
|
||||
PaymentRequestInterface $paymentRequest
|
||||
PaymentRequestInterface $paymentRequest,
|
||||
): ?Response;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,6 @@ interface PaymentRequestRepositoryInterface extends RepositoryInterface
|
|||
public function findOneByActionPaymentAndMethod(
|
||||
string $action,
|
||||
PaymentInterface $payment,
|
||||
PaymentMethodInterface $paymentMethod
|
||||
PaymentMethodInterface $paymentMethod,
|
||||
): ?PaymentRequestInterface;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue