Code Duplication    Length = 8-8 lines in 3 locations

src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsAJAXController.php 3 locations

@@ 111-118 (lines=8) @@
108
    /**
109
     * @Route("/account/save", name="kunstmaan_dashboard_ajax_account_save")
110
     */
111
    public function saveAccountAction(Request $request)
112
    {
113
        $accountId = $request->query->get('id');
114
        $configHelper = $this->container->get('kunstmaan_dashboard.helper.google.analytics.config');
115
        $configHelper->saveAccountId($accountId);
116
117
        return new JsonResponse();
118
    }
119
120
    /* =============================== PROPERTY =============================== */
121
@@ 142-149 (lines=8) @@
139
    /**
140
     * @Route("/property/save", name="kunstmaan_dashboard_ajax_property_save")
141
     */
142
    public function savePropertyAction(Request $request)
143
    {
144
        $propertyId = $request->query->get('id');
145
        $configHelper = $this->container->get('kunstmaan_dashboard.helper.google.analytics.config');
146
        $configHelper->savePropertyId($propertyId);
147
148
        return new JsonResponse();
149
    }
150
151
    /* =============================== PROFILE =============================== */
152
@@ 174-181 (lines=8) @@
171
    /**
172
     * @Route("/profile/save", name="kunstmaan_dashboard_ajax_profile_save")
173
     */
174
    public function saveProfileAction(Request $request)
175
    {
176
        $propertyId = $request->query->get('id');
177
        $configHelper = $this->container->get('kunstmaan_dashboard.helper.google.analytics.config');
178
        $configHelper->saveProfileId($propertyId);
179
180
        return new JsonResponse();
181
    }
182
183
    /* =============================== CONFIG =============================== */
184