Code Duplication    Length = 8-8 lines in 2 locations

src/Webcreate/Conveyor/Transporter/RsyncTransporter.php 1 location

@@ 271-278 (lines=8) @@
268
     * @param  null              $callback
269
     * @throws \RuntimeException
270
     */
271
    public function exec($command, $callback = null)
272
    {
273
        $commandline   = sprintf("ssh %s@%s \"%s\"", $this->getUser(), $this->getHost(), $command);
274
275
        if ($this->cli->execute($commandline, $callback)) {
276
            throw new \RuntimeException($this->cli->getErrorOutput());
277
        }
278
    }
279
280
    /**
281
     * Lists files and directories

src/Webcreate/Conveyor/Transporter/ScpTransporter.php 1 location

@@ 256-263 (lines=8) @@
253
     * @param  null              $callback
254
     * @throws \RuntimeException
255
     */
256
    public function exec($command, $callback = null)
257
    {
258
        $commandline = sprintf("ssh %s@%s \"%s\"", $this->getUser(), $this->getHost(), $command);
259
260
        if ($this->cli->execute($commandline, $callback)) {
261
            throw new \RuntimeException($this->cli->getErrorOutput());
262
        }
263
    }
264
265
    /**
266
     * Lists files and directories