Code Duplication    Length = 10-10 lines in 2 locations

Controller/ControllerTrait.php 1 location

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

Controller/TrendsController.php 1 location

@@ 316-325 (lines=10) @@
313
        return $str;
314
    }
315
316
    protected function validateJobTimingManager()
317
    {
318
        if ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
319
            $this->validateManagerType('dtc_queue.job_timing_manager');
320
        } elseif ($this->container->hasParameter('dtc_queue.job_timing_manager')) {
321
            $this->validateManagerType('dtc_queue.run_manager');
322
        } else {
323
            $this->validateManagerType('dtc_queue.default_manager');
324
        }
325
    }
326
}
327