Code Duplication    Length = 9-9 lines in 2 locations

src/Controller/Paypal/PaymentsController.php 2 locations

@@ 42-50 (lines=9) @@
39
     * @param string $paymentId
40
     * @return Response | RedirectResponse
41
     */
42
    public function capture(string $paymentId)
43
    {
44
        $capture = $this->paypalService->getPaymentService()->capturePayment($paymentId);
45
        return $this->render('default/dump-input-id.html.twig', [
46
            'raw_result' => false,
47
            'result' => $capture,
48
            'result_id' => 'payment-id'
49
        ]);
50
    }
51
52
    /**
53
     * @Route("/pay-outs", name="pay-outs-create", methods={"POST"})
@@ 121-129 (lines=9) @@
118
     * @param string $invoiceId
119
     * @return Response | RedirectResponse
120
     */
121
    public function invoicesRefresh(string $invoiceId)
122
    {
123
        $invoice = $this->paypalService->getInvoiceService()->getInvoice($invoiceId);
124
        return $this->render('default/dump-input-id.html.twig', [
125
            'raw_result' => false,
126
            'result' => $invoice,
127
            'result_id' => $invoice->getId()
128
        ]);
129
    }
130
131
    /**
132
     * @Route("/{paymentId}/ecs-result", name="ecs-result", methods={"POST"})