Code Duplication    Length = 9-9 lines in 2 locations

app/Ping.php 1 location

@@ 42-50 (lines=9) @@
39
     * Attributes
40
     */
41
42
    public function getTagsAttribute()
43
    {
44
        if (empty($this->attributes['tags'])) {
45
            return [];
46
        }
47
        $tagArray = explode(',', $this->attributes['tags']);
48
49
        return $this->trimArrayItems($tagArray);
50
    }
51
52
53
    public function setTagsAttribute($tags)

app/Contact.php 1 location

@@ 26-34 (lines=9) @@
23
     * Attributes
24
     */
25
26
    public function getFilterTagsAttribute()
27
    {
28
        if (empty($this->attributes['filter_tags'])) {
29
            return [];
30
        }
31
        $tagArray = explode(',', $this->attributes['filter_tags']);
32
33
        return $this->trimArrayItems($tagArray);
34
    }
35
36
37
    public function setFilterTagsAttribute($tags)