Code Duplication    Length = 8-9 lines in 2 locations

src/history/Tag.php 1 location

@@ 95-103 (lines=9) @@
92
     * @param mixed $value date
93
     * @return Tag this
94
     */
95
    public function setDate($value)
96
    {
97
        $timestamp = strtotime($value);
98
        if ($timestamp !== false && $timestamp > $this->_date) {
99
            $this->_date = $timestamp;
100
        }
101
102
        return $this;
103
    }
104
105
    /**
106
     * Unsets date.

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()