Code Duplication    Length = 10-11 lines in 2 locations

Controller/CountryMappingController.php 2 locations

@@ 77-87 (lines=11) @@
74
     *
75
     * @return Response
76
     */
77
    public function newAction(Request $request)
78
    {
79
        $countryMapping = new CountryMapping();
80
        $form = $this->getForm($countryMapping);
81
        $res = $this->handleUpdate($form, $countryMapping, $request);
82
        if($res) {
83
            return $res;
84
        }
85
86
        return $this->updateResponse($countryMapping, $form);
87
    }
88
89
    /**
90
     * @Method({"GET", "POST"})
@@ 98-107 (lines=10) @@
95
     *
96
     * @return Response
97
     */
98
    public function editAction(CountryMapping $countryMapping, Request $request)
99
    {
100
        $form = $this->getForm($countryMapping);
101
        $res = $this->handleUpdate($form, $countryMapping, $request);
102
        if($res) {
103
            return $res;
104
        }
105
106
        return $this->updateResponse($countryMapping, $form);
107
    }
108
109
    /**
110
     * @param Form $form