Code Duplication    Length = 8-9 lines in 2 locations

src/history/Commit.php 1 location

@@ 111-118 (lines=8) @@
108
        return $this->_comments;
109
    }
110
111
    public function setDate($value)
112
    {
113
        $timestamp = strtotime($value);
114
        if ($timestamp !== false) {
115
            $this->_date = $timestamp;
116
        }
117
118
        return $this;
119
    }
120
121
    public function getDate()

src/history/Tag.php 1 location

@@ 101-109 (lines=9) @@
98
     * @param mixed $value date
99
     * @return Tag this
100
     */
101
    public function setDate($value)
102
    {
103
        $timestamp = strtotime($value);
104
        if ($timestamp !== false && $timestamp > $this->_date) {
105
            $this->_date = $timestamp;
106
        }
107
108
        return $this;
109
    }
110
111
    /**
112
     * Unsets date.