/** * Closes the current FTP connection. * * @return bool */ public function close() { if ($this->conn) { $this->ftp->close(); $this->conn = null; } }