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