Code Duplication    Length = 8-8 lines in 2 locations

app/Ping.php 1 location

@@ 53-60 (lines=8) @@
50
    }
51
52
53
    public function setTagsAttribute($tags)
54
    {
55
        if (is_array($tags)) {
56
            $this->attributes['tags'] = implode(',', $this->trimArrayItems($tags));
57
        } else {
58
            $this->attributes['tags'] = trim($tags);
59
        }
60
    }
61
62
    public function getLastPingAttribute()
63
    {

app/Contact.php 1 location

@@ 37-44 (lines=8) @@
34
    }
35
36
37
    public function setFilterTagsAttribute($tags)
38
    {
39
        if (is_array($tags)) {
40
            $this->attributes['filter_tags'] = implode(',', $this->trimArrayItems($tags));
41
        } else {
42
            $this->attributes['filter_tags'] = trim($tags);
43
        }
44
    }
45
46
47
    /**