Code Duplication    Length = 7-7 lines in 2 locations

src/Task/Vcs/GitStack.php 1 location

@@ 163-169 (lines=7) @@
160
     *
161
     * @return $this
162
     */
163
    public function tag($tag_name, $message = "")
164
    {
165
        if ($message != "") {
166
            $message = "-m '$message'";
167
        }
168
        return $this->exec([__FUNCTION__, $message, $tag_name]);
169
    }
170
171
    /**
172
     * {@inheritdoc}

src/Task/Vcs/HgStack.php 1 location

@@ 138-144 (lines=7) @@
135
     *
136
     * @return $this
137
     */
138
    public function tag($tag_name, $message = '')
139
    {
140
        if ($message !== '') {
141
            $message = "-m '{$message}'";
142
        }
143
        return $this->exec([__FUNCTION__, $message, $tag_name]);
144
    }
145
146
    /**
147
     * {@inheritdoc}