Code Duplication    Length = 11-11 lines in 2 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/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")