Code Duplication    Length = 3-3 lines in 4 locations

src/Webcreate/Conveyor/Transporter/SftpTransporter.php 4 locations

@@ 316-318 (lines=3) @@
313
        $dest = rtrim($dest, '/');
314
315
        $success = $this->sftp->exec(sprintf("ln -s -T -f %s %s", escapeshellarg($src), escapeshellarg($dest)));
316
        if (false === $success) {
317
            throw new \RuntimeException('Something went wrong: ' . "\n" . implode("\n", (array) $this->sftp->getErrors()));
318
        }
319
    }
320
321
    /**
@@ 362-364 (lines=3) @@
359
        $lstat = $this->sftp->lstat($src);
360
        if ($lstat['type'] === 3) {
361
            $result = $this->sftp->exec(sprintf("readlink -f %s", escapeshellarg($src)));
362
            if (false === $result) {
363
                throw new \RuntimeException('Something went wrong: ' . "\n" . implode("\n", (array) $this->sftp->getErrors()));
364
            }
365
366
            $src = trim($result);
367
        }
@@ 370-372 (lines=3) @@
367
        }
368
369
        $success = $this->sftp->exec(sprintf("cp -{$recursiveFlag}f %s %s", escapeshellarg($src), escapeshellarg($dest)));
370
        if (false === $success) {
371
            throw new \RuntimeException('Something went wrong: ' . "\n" . implode("\n", (array) $this->sftp->getErrors()));
372
        }
373
    }
374
375
    public function remove($path, $recursive = true)
@@ 413-415 (lines=3) @@
410
//            $callback($data);
411
//        }
412
413
        if (false === $success) {
414
            throw new \RuntimeException('Something went wrong: ' . "\n" . implode("\n", (array) $this->sftp->getErrors()));
415
        }
416
417
        $status = $this->sftp->getExitStatus();
418
        if ($status === false) {