Code Duplication    Length = 9-9 lines in 2 locations

htdocs_symfony/src/Controller/Backend/SupportController.php 2 locations

@@ 265-273 (lines=9) @@
262
     * @throws RecordNotPersistedException
263
     * @route("/repCachesAssignSupportuser/{repID}&{adminId}&{route}", name="support_reported_cache_supportuser_assignment")
264
     */
265
    public function repCaches_supportuser_assignment(int $repID, int $adminId, string $route)
266
    : Response {
267
        $entity = $this->cacheReportsRepository->fetchOneBy(['id' => $repID]);
268
        $entity->adminid = $adminId;
269
270
        $this->cacheReportsRepository->update($entity);
271
272
        return $this->redirectToRoute($route, ['repID' => $repID]);
273
    }
274
275
    /**
276
     * @param int $repID
@@ 285-293 (lines=9) @@
282
     * @throws RecordNotPersistedException
283
     * @route("/repCachesAssignSupportuser/{repID}&{route}", name="support_reported_cache_set_status")
284
     */
285
    public function repCaches_setReportStatus(int $repID, string $route)
286
    : Response {
287
        $entity = $this->cacheReportsRepository->fetchOneBy(['id' => $repID]);
288
        $entity->status = 3; // ToDo: die '3' hart vorgeben? Oder irgendwie
289
290
        $this->cacheReportsRepository->update($entity);
291
292
        return $this->redirectToRoute($route, ['repID' => $repID]);
293
    }
294
295
    /**
296
     * @param string $wpID