Code Duplication    Length = 10-10 lines in 2 locations

Controller/ControllerTrait.php 1 location

@@ 7-16 (lines=10) @@
4
5
trait ControllerTrait
6
{
7
    protected function validateJobTimingManager()
8
    {
9
        if ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
10
            $this->validateManagerType('dtc_queue.job_timing_manager');
11
        } elseif ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
12
            $this->validateManagerType('dtc_queue.run_manager');
13
        } else {
14
            $this->validateManagerType('dtc_queue.default_manager');
15
        }
16
    }
17
18
    protected function validateRunManager()
19
    {

Controller/TrendsController.php 1 location

@@ 258-267 (lines=10) @@
255
        return $resultHash;
256
    }
257
258
    protected function validateJobTimingManager()
259
    {
260
        if ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
261
            $this->validateManagerType('dtc_queue.job_timing_manager');
262
        } elseif ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
263
            $this->validateManagerType('dtc_queue.run_manager');
264
        } else {
265
            $this->validateManagerType('dtc_queue.default_manager');
266
        }
267
    }
268
}
269