Code Duplication    Length = 12-12 lines in 2 locations

src/WorkflowHandler.php 2 locations

@@ 68-79 (lines=12) @@
65
    /**
66
     * @return mixed
67
     */
68
    public function getRecentTimers()
69
    {
70
        $timers = [];
71
72
        foreach ($this->config->implementedServicesForFeature('get_timers') as $service) {
73
            if ($this->config->isServiceActive($service) === true) {
74
                $timers = array_merge($timers, $this->getRecentServiceTimers($service));
75
            }
76
        }
77
78
        return $timers;
79
    }
80
81
    /**
82
     * @param  $service
@@ 143-154 (lines=12) @@
140
    /**
141
     * @return mixed
142
     */
143
    public function syncOnlineDataToLocalCache()
144
    {
145
        $message = '';
146
147
        foreach ($this->config->implementedServicesForFeature('sync_data') as $service) {
148
            if ($this->config->isServiceActive($service) === true) {
149
                $message .= $this->syncServiceOnlineDataToLocalCache($service);
150
            }
151
        }
152
153
        return $message;
154
    }
155
156
    /**
157
     * @param  $needle