Code Duplication    Length = 9-9 lines in 2 locations

src/time.php 2 locations

@@ 495-503 (lines=9) @@
492
    /**
493
     * @return mixed
494
     */
495
    private function stopHarvestTimer()
496
    {
497
        $harvestId = $this->config->get('workflow', 'timer_harvest_id');
498
499
        $res = $this->harvest->stopTimer($harvestId);
500
        $this->message = $this->harvest->getLastMessage();
501
502
        return $res;
503
    }
504
505
    /**
506
     * @return mixed
@@ 508-516 (lines=9) @@
505
    /**
506
     * @return mixed
507
     */
508
    private function stopTogglTimer()
509
    {
510
        $togglId = $this->config->get('workflow', 'timer_toggl_id');
511
512
        $res = $this->toggl->stopTimer($togglId);
513
        $this->message = $this->toggl->getLastMessage();
514
515
        return $res;
516
    }
517
518
    /**
519
     * @return mixed