Code Duplication    Length = 5-5 lines in 2 locations

src/API/Http/Request/Workspace/WorkspaceProjects.php 1 location

@@ 44-48 (lines=5) @@
41
    {
42
        parent::__construct($properties);
43
44
        if ($this->active === true) {
45
            $this->uri = str_replace('{active}', 'true', $this->uri);
46
        } else {
47
            $this->uri = str_replace('{active}', 'false', $this->uri);
48
        }
49
50
        if ($this->actualHours === true) {
51
            $this->uri = str_replace('{actual_hours}', 'true', $this->uri);

src/API/Http/Request/Workspace/WorkspaceTasks.php 1 location

@@ 32-36 (lines=5) @@
29
    {
30
        parent::__construct($properties);
31
32
        if ($this->active === true) {
33
            $this->uri = str_replace('{active}', 'true', $this->uri);
34
        } else {
35
            $this->uri = str_replace('{active}', 'false', $this->uri);
36
        }
37
    }
38
}
39