Code Duplication    Length = 12-12 lines in 2 locations

Controller/QueueController.php 2 locations

@@ 40-51 (lines=12) @@
37
     *
38
     * @Route("/jobs_all", name="dtc_queue_jobs_all")
39
     */
40
    public function jobsAllAction()
41
    {
42
        $this->validateManagerType('dtc_queue.default_manager');
43
        $class1 = $this->container->getParameter('dtc_queue.class_job');
44
        $class2 = $this->container->getParameter('dtc_queue.class_job_archive');
45
        $label1 = 'Non-Archived Jobs';
46
        $label2 = 'Archived Jobs';
47
48
        $params = $this->getDualGridParams($class1, $class2, $label1, $label2);
49
50
        return $this->render('@DtcQueue/Queue/grid.html.twig', $params);
51
    }
52
53
    /**
54
     * List jobs in system by default.
@@ 134-145 (lines=12) @@
131
     *
132
     * @Route("/runs", name="dtc_queue_runs")
133
     */
134
    public function runsAction()
135
    {
136
        $this->validateRunManager();
137
        $class1 = $this->container->getParameter('dtc_queue.class_run');
138
        $class2 = $this->container->getParameter('dtc_queue.class_run_archive');
139
        $label1 = 'Live Runs';
140
        $label2 = 'Archived Runs';
141
142
        $params = $this->getDualGridParams($class1, $class2, $label1, $label2);
143
144
        return $this->render('@DtcQueue/Queue/grid.html.twig', $params);
145
    }
146
147
    /**
148
     * List registered workers in the system.