Code Duplication    Length = 9-9 lines in 2 locations

src/Timer.php 1 location

@@ 29-37 (lines=9) @@
26
    /**
27
     * @param Config $config
28
     */
29
    public function __construct(Config $config = null)
30
    {
31
        $this->config = $config;
32
        $this->harvest = new Harvest(
33
            $this->config->get('harvest', 'domain'),
34
            $this->config->get('harvest', 'api_token')
35
        );
36
        $this->toggl = new Toggl($this->config->get('toggl', 'api_token'));
37
    }
38
39
    /**
40
     * @param  array   $timerData

src/WorkflowHandler.php 1 location

@@ 27-35 (lines=9) @@
24
    /**
25
     * @param Config $config
26
     */
27
    public function __construct(Config $config = null)
28
    {
29
        $this->config = $config;
30
        $this->harvest = new Harvest(
31
            $this->config->get('harvest', 'domain'),
32
            $this->config->get('harvest', 'api_token')
33
        );
34
        $this->toggl = new Toggl($this->config->get('toggl', 'api_token'));
35
    }
36
37
    /**
38
     * @param  array     $results