Code Duplication    Length = 9-11 lines in 3 locations

Controller/SiteSettingController.php 1 location

@@ 28-36 (lines=9) @@
25
     *
26
     * @return Response
27
     */
28
    public function indexAction(Request $request)
29
    {
30
        $repos = $this->get('loevgaard_dandomain_altapay.site_setting_repository');
31
        $siteSettings = $repos->findAllWithPaging($request->query->getInt('page', 1));
32
33
        return $this->render('@LoevgaardDandomainAltapay/site_setting/index.html.twig', [
34
            'siteSettings' => $siteSettings,
35
        ]);
36
    }
37
38
    /**
39
     * @Method("GET")

Controller/TerminalController.php 1 location

@@ 25-35 (lines=11) @@
22
     *
23
     * @return Response
24
     */
25
    public function indexAction(Request $request)
26
    {
27
        $terminalRepository = $this->container->get('loevgaard_dandomain_altapay.terminal_repository');
28
29
        /** @var Terminal[] $terminals */
30
        $terminals = $terminalRepository->findAllWithPaging($request->query->getInt('page', 1));
31
32
        return $this->render('@LoevgaardDandomainAltapay/terminal/index.html.twig', [
33
            'terminals' => $terminals,
34
        ]);
35
    }
36
}
37

Controller/PaymentController.php 1 location

@@ 42-52 (lines=11) @@
39
     *
40
     * @return Response
41
     */
42
    public function indexAction(Request $request)
43
    {
44
        $paymentRepository = $this->container->get('loevgaard_dandomain_altapay.payment_repository');
45
46
        /** @var Payment[] $payments */
47
        $payments = $paymentRepository->findAllWithPaging($request->query->getInt('page', 1));
48
49
        return $this->render('@LoevgaardDandomainAltapay/payment/index.html.twig', [
50
            'payments' => $payments,
51
        ]);
52
    }
53
54
    /**
55
     * @Method("GET")