Code Duplication    Length = 10-10 lines in 2 locations

src/web/Ftp.php 2 locations

@@ 250-259 (lines=10) @@
247
     *
248
     * @return bool
249
     */
250
    public function mkdir($directory = null)
251
    {
252
        if (\ftp_mkdir($this->_stream, $directory)) {
253
            return true;
254
        }
255
256
        $this->error = 'Failed to create directory "'.$directory.'"';
257
258
        return false;
259
    }
260
261
    /**
262
     * Upload file to server
@@ 317-326 (lines=10) @@
314
     *
315
     * @return bool
316
     */
317
    public function rmdir($directory = null)
318
    {
319
        if (\ftp_rmdir($this->_stream, $directory)) {
320
            return true;
321
        }
322
323
        $this->error = 'Failed to remove directory "'.$directory.'"';
324
325
        return false;
326
    }
327
}
328