Code Duplication    Length = 8-8 lines in 2 locations

src/Task/Vcs/HgStack.php 2 locations

@@ 89-96 (lines=8) @@
86
     *
87
     * @return $this
88
     */
89
    public function pull($branch = '')
90
    {
91
        if (strlen($branch) > 0) {
92
            $branch = "-b '{$branch}''";
93
        }
94
95
        return $this->exec([__FUNCTION__, $branch]);
96
    }
97
98
    /**
99
     * Executes `hg push` command
@@ 105-112 (lines=8) @@
102
     *
103
     * @return $this
104
     */
105
    public function push($branch = '')
106
    {
107
        if (strlen($branch) > 0) {
108
            $branch = "-b '{$branch}'";
109
        }
110
111
        return $this->exec([__FUNCTION__, $branch]);
112
    }
113
114
    /**
115
     * Performs hg merge