Code Duplication    Length = 9-9 lines in 2 locations

src/CurlFtpAdapter.php 2 locations

@@ 205-213 (lines=9) @@
202
     *
203
     * @return bool
204
     */
205
    public function delete($path)
206
    {
207
        $connection = $this->getConnection();
208
209
        $response = $this->rawCommand($connection, 'DELE ' . $path);
210
        list($code) = explode(' ', end($response), 2);
211
212
        return (int) $code === 250;
213
    }
214
215
    /**
216
     * Delete a directory.
@@ 222-230 (lines=9) @@
219
     *
220
     * @return bool
221
     */
222
    public function deleteDir($dirname)
223
    {
224
        $connection = $this->getConnection();
225
226
        $response = $this->rawCommand($connection, 'RMD ' . $dirname);
227
        list($code) = explode(' ', end($response), 2);
228
229
        return (int) $code === 250;
230
    }
231
232
    /**
233
     * Create a directory.