Code Duplication    Length = 12-12 lines in 2 locations

Controller/QueueController.php 2 locations

@@ 45-56 (lines=12) @@
42
     *
43
     * @throws UnsupportedException
44
     */
45
    public function jobsAllAction()
46
    {
47
        $this->validateManagerType('dtc_queue.manager.job');
48
        $class1 = $this->container->getParameter('dtc_queue.class.job');
49
        $class2 = $this->container->getParameter('dtc_queue.class.job_archive');
50
        $label1 = 'Non-Archived Jobs';
51
        $label2 = 'Archived Jobs';
52
53
        $params = $this->getDualGridParams($class1, $class2, $label1, $label2);
54
55
        return $this->render('@DtcQueue/Queue/grid.html.twig', $params);
56
    }
57
58
    /**
59
     * @Route("/archive", name="dtc_queue_archive")
@@ 248-259 (lines=12) @@
245
     *
246
     * @Route("/runs", name="dtc_queue_runs")
247
     */
248
    public function runsAction()
249
    {
250
        $this->validateRunManager();
251
        $class1 = $this->container->getParameter('dtc_queue.class.run');
252
        $class2 = $this->container->getParameter('dtc_queue.class.run_archive');
253
        $label1 = 'Live Runs';
254
        $label2 = 'Archived Runs';
255
256
        $params = $this->getDualGridParams($class1, $class2, $label1, $label2);
257
258
        return $this->render('@DtcQueue/Queue/grid.html.twig', $params);
259
    }
260
261
    /**
262
     * List registered workers in the system.