Code Duplication    Length = 10-10 lines in 3 locations

Controller/CallbackController.php 3 locations

@@ 41-50 (lines=10) @@
38
     *
39
     * @return Response
40
     */
41
    public function formAction(Request $request)
42
    {
43
        $payment = $this->handleCallback($request);
44
        $siteSettings = $this->getSiteSettings($payment);
45
46
        return $this->render('@LoevgaardDandomainAltapay/callback/form.html.twig', [
47
            'payment' => $payment,
48
            'siteSettings' => $siteSettings,
49
        ]);
50
    }
51
52
    /**
53
     * @Method("POST")
@@ 114-123 (lines=10) @@
111
     * @throws PaymentException
112
     * @return Response
113
     */
114
    public function redirectAction(Request $request)
115
    {
116
        $payment = $this->handleCallback($request);
117
        $siteSettings = $this->getSiteSettings($payment);
118
119
        return $this->render('@LoevgaardDandomainAltapay/callback/redirect.html.twig', [
120
            'payment' => $payment,
121
            'siteSettings' => $siteSettings,
122
        ]);
123
    }
124
125
    /**
126
     * @Method("POST")
@@ 136-145 (lines=10) @@
133
     * @throws PaymentException
134
     * @return Response
135
     */
136
    public function openAction(Request $request)
137
    {
138
        $payment = $this->handleCallback($request);
139
        $siteSettings = $this->getSiteSettings($payment);
140
141
        return $this->render('@LoevgaardDandomainAltapay/callback/open.html.twig', [
142
            'payment' => $payment,
143
            'siteSettings' => $siteSettings,
144
        ]);
145
    }
146
147
    /**
148
     * @Method("POST")