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
     * @Route("/archive", name="dtc_queue_archive")
@@ 159-170 (lines=12) @@
156
     *
157
     * @Route("/runs", name="dtc_queue_runs")
158
     */
159
    public function runsAction()
160
    {
161
        $this->validateRunManager();
162
        $class1 = $this->container->getParameter('dtc_queue.class_run');
163
        $class2 = $this->container->getParameter('dtc_queue.class_run_archive');
164
        $label1 = 'Live Runs';
165
        $label2 = 'Archived Runs';
166
167
        $params = $this->getDualGridParams($class1, $class2, $label1, $label2);
168
169
        return $this->render('@DtcQueue/Queue/grid.html.twig', $params);
170
    }
171
172
    /**
173
     * List registered workers in the system.