Code Duplication    Length = 14-14 lines in 2 locations

Helper/RunnerManager.php 2 locations

@@ 33-46 (lines=14) @@
30
    /**
31
     * @return array|Runner[] key/value $group/$runner
32
     */
33
    public function getRunners()
34
    {
35
        $runnerServiceIds = $this->container->getParameter('liip_monitor.runners');
36
37
        $runners = [];
38
39
        foreach ($runnerServiceIds as $serviceId) {
40
            if (preg_match('/liip_monitor.runner_(.+)/', $serviceId, $matches)) {
41
                $runners[$matches[1]] = $this->container->get($serviceId);
42
            }
43
        }
44
45
        return $runners;
46
    }
47
48
    /**
49
     * @return array|string[]
@@ 51-64 (lines=14) @@
48
    /**
49
     * @return array|string[]
50
     */
51
    public function getGroups()
52
    {
53
        $runnerServiceIds = $this->container->getParameter('liip_monitor.runners');
54
55
        $groups = [];
56
57
        foreach ($runnerServiceIds as $serviceId) {
58
            if (preg_match('/liip_monitor.runner_(.+)/', $serviceId, $matches)) {
59
                $groups[] = $matches[1];
60
            }
61
        }
62
63
        return $groups;
64
    }
65
66
    /**
67
     * @return string