Code Duplication    Length = 8-8 lines in 2 locations

src/Time.php 1 location

@@ 53-60 (lines=8) @@
50
     */
51
    private $toggl;
52
53
    public function __construct()
54
    {
55
        $this->config = new Config(getenv('alfred_workflow_data') . '/config.json');
56
57
        $this->harvest = new Harvest($this->config->get('harvest', 'domain'), $this->config->get('harvest', 'api_token'));
58
        $this->toggl = new Toggl($this->config->get('toggl', 'api_token'));
59
        $this->message = '';
60
    }
61
62
    /**
63
     * @return mixed

src/Timer.php 1 location

@@ 53-60 (lines=8) @@
50
     */
51
    private $toggl;
52
53
    public function __construct()
54
    {
55
        $this->config = new Config(getenv('alfred_workflow_data') . '/config.json');
56
57
        $this->harvest = new Harvest($this->config->get('harvest', 'domain'), $this->config->get('harvest', 'api_token'));
58
        $this->toggl = new Toggl($this->config->get('toggl', 'api_token'));
59
        $this->message = '';
60
    }
61
62
    /**
63
     * @return mixed