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

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

Controller/ShippingMethodMappingController.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.shipping_method_mapping_repository');
31
32
        /** @var ShippingMethodMapping[] $shippingMethodMappings */
33
        $shippingMethodMappings = $repos->findAllWithPaging($request->query->getInt('page', 1));
34
35
        return $this->render('@LoevgaardPakkelabels/shipping_method_mapping/index.html.twig', [
36
            'shippingMethodMappings' => $shippingMethodMappings,
37
        ]);
38
    }
39
40
    /**
41
     * @Method("GET")