Code Duplication    Length = 9-9 lines in 2 locations

src/Controller/Paypal/PaymentsController.php 2 locations

@@ 35-43 (lines=9) @@
32
     * @param string $paymentId
33
     * @return Response | RedirectResponse
34
     */
35
    public function capture(string $paymentId)
36
    {
37
        $capture = $this->paypalService->getPaymentService()->capturePayment($paymentId);
38
        return $this->render('default/dump-input-id.html.twig', [
39
            'raw_result' => false,
40
            'result' => $capture,
41
            'result_id' => 'payment-id'
42
        ]);
43
    }
44
45
    /**
46
     * @Route("/pay-outs", name="pay-outs", methods={"GET"})
@@ 134-142 (lines=9) @@
131
     * @param string $invoiceId
132
     * @return Response | RedirectResponse
133
     */
134
    public function invoicesRefresh(string $invoiceId)
135
    {
136
        $invoice = $this->paypalService->getInvoiceService()->getInvoice($invoiceId);
137
        return $this->render('default/dump-input-id.html.twig', [
138
            'raw_result' => false,
139
            'result' => $invoice,
140
            'result_id' => $invoice->getId()
141
        ]);
142
    }
143
144
    /**
145
     * @Route("/subscriptions", name="subscriptions", methods={"GET"})