Code Duplication    Length = 19-19 lines in 2 locations

src/SSH/Driver/Sftp.php 1 location

@@ 83-101 (lines=19) @@
80
     * @param resource $conn
81
     * @param float $interval
82
     */
83
    public function __construct(SSH2Interface $ssh2, $conn, $interval = 1e-1)
84
    {
85
        $this->ssh2 = $ssh2;
86
        $this->conn = $conn;
87
        $this->interval = $interval;
88
89
        $this->loop = $ssh2->getLoop();
90
91
        $this->resource = null;
92
        $this->resources = [];
93
        $this->paused = true;
94
95
        $this->timer = null;
96
        $this->resourcesCounter = 0;
97
        $this->buffer = '';
98
        $this->prefix = '';
99
100
        $this->resume();
101
    }
102
103
    /**
104
     *

src/SSH/Driver/Shell.php 1 location

@@ 82-100 (lines=19) @@
79
     * @param resource $conn
80
     * @param float $interval
81
     */
82
    public function __construct(SSH2Interface $ssh2, $conn, $interval = 1e-1)
83
    {
84
        $this->ssh2 = $ssh2;
85
        $this->conn = $conn;
86
        $this->interval = $interval;
87
88
        $this->loop = $ssh2->getLoop();
89
90
        $this->resource = null;
91
        $this->resources = [];
92
        $this->paused = true;
93
94
        $this->timer = null;
95
        $this->resourcesCounter = 0;
96
        $this->buffer = '';
97
        $this->prefix = '';
98
99
        $this->resume();
100
    }
101
102
    /**
103
     *