Code Duplication    Length = 12-12 lines in 2 locations

src/Time.php 1 location

@@ 290-301 (lines=12) @@
287
    /**
288
     * @return mixed
289
     */
290
    public function servicesToUndo()
291
    {
292
        $services = [];
293
294
        foreach ($this->activatedServices() as $service) {
295
            if ($this->config->get('workflow', 'timer_' . $service . '_id') !== null) {
296
                array_push($services, $service);
297
            }
298
        }
299
300
        return $services;
301
    }
302
303
    /**
304
     * @param  $description

src/Timer.php 1 location

@@ 289-300 (lines=12) @@
286
    /**
287
     * @return mixed
288
     */
289
    public function servicesToUndo()
290
    {
291
        $services = [];
292
293
        foreach ($this->activatedServices() as $service) {
294
            if ($this->config->get('workflow', 'timer_' . $service . '_id') !== null) {
295
                array_push($services, $service);
296
            }
297
        }
298
299
        return $services;
300
    }
301
302
    /**
303
     * @param  $description