Code Duplication    Length = 11-11 lines in 3 locations

Controller/CountryMappingController.php 1 location

@@ 28-38 (lines=11) @@
25
     *
26
     * @return Response
27
     */
28
    public function indexAction(Request $request)
29
    {
30
        $repos = $this->get('loevgaard_pakkelabels.country_mapping_repository');
31
32
        /** @var CountryMapping[] $countryMappings */
33
        $countryMappings = $repos->findAllWithPaging($request->query->getInt('page', 1));
34
35
        return $this->render('@LoevgaardPakkelabels/country_mapping/index.html.twig', [
36
            'countryMappings' => $countryMappings,
37
        ]);
38
    }
39
40
    /**
41
     * @Method("GET")

Controller/LabelController.php 1 location

@@ 27-37 (lines=11) @@
24
     *
25
     * @return Response
26
     */
27
    public function indexAction(Request $request)
28
    {
29
        $repos = $this->get('loevgaard_pakkelabels.label_repository');
30
31
        /** @var Label[] $labels */
32
        $labels = $repos->findAllWithPaging($request->query->getInt('page', 1));
33
34
        return $this->render('@LoevgaardPakkelabels/label/index.html.twig', [
35
            'labels' => $labels,
36
        ]);
37
    }
38
39
    /**
40
     * @Method("GET")

Controller/ShippingMethodMappingController.php 1 location

@@ 29-39 (lines=11) @@
26
     *
27
     * @return Response
28
     */
29
    public function indexAction(Request $request)
30
    {
31
        $repos = $this->get('loevgaard_pakkelabels.shipping_method_mapping_repository');
32
33
        /** @var ShippingMethodMapping[] $shippingMethodMappings */
34
        $shippingMethodMappings = $repos->findAllWithPaging($request->query->getInt('page', 1));
35
36
        return $this->render('@LoevgaardPakkelabels/shipping_method_mapping/index.html.twig', [
37
            'shippingMethodMappings' => $shippingMethodMappings,
38
        ]);
39
    }
40
41
    /**
42
     * @Method("GET")