Code Duplication    Length = 8-8 lines in 2 locations

app/Form/FilterIssue.php 1 location

@@ 43-50 (lines=8) @@
40
     *
41
     * @return \Illuminate\Database\Eloquent\Collection|null
42
     */
43
    protected function getTags($type)
44
    {
45
        if ($this->tags === null) {
46
            $this->tags = (new Model\Tag())->getGroupTags();
47
        }
48
49
        return $this->tags->where('name', $type)->first()->tags;
50
    }
51
52
    /**
53
     * @param array $params

app/Form/Issue.php 1 location

@@ 50-57 (lines=8) @@
47
     *
48
     * @return \Illuminate\Database\Eloquent\Collection
49
     */
50
    protected function getTags($type)
51
    {
52
        if ($this->tags === null) {
53
            $this->tags = (new Model\Tag())->getGroupTags();
54
        }
55
56
        return $this->tags->where('name', $type)->first()->tags;
57
    }
58
59
    /**
60
     * Returns an array of tags to be used as the selectable options.