Code Duplication    Length = 10-10 lines in 2 locations

micro/web/Ftp.php 2 locations

@@ 213-222 (lines=10) @@
210
     *
211
     * @return bool
212
     */
213
    public function get($remote_file = null, $local_file = null, $mode = FTP_ASCII)
214
    {
215
        if (ftp_get($this->_stream, $local_file, $remote_file, $mode)) {
216
            return true;
217
        }
218
219
        $this->error = 'Failed to download file "' . $remote_file . '"';
220
221
        return false;
222
    }
223
224
    /**
225
     * Get list of files/directories in directory
@@ 269-278 (lines=10) @@
266
     *
267
     * @return bool
268
     */
269
    public function put($local_file = null, $remote_file = null, $mode = FTP_ASCII)
270
    {
271
        if (ftp_put($this->_stream, $remote_file, $local_file, $mode)) {
272
            return true;
273
        }
274
275
        $this->error = 'Failed to upload file "' . $local_file . '"';
276
277
        return false;
278
    }
279
280
    /**
281
     * Get current directory