Code Duplication    Length = 10-10 lines in 2 locations

plugin/bbb/lib/bbb.lib.php 2 locations

@@ 825-834 (lines=10) @@
822
    /**
823
     * Function disabled
824
     */
825
    public function publishMeeting($id)
826
    {
827
        //return BigBlueButtonBN::setPublishRecordings($id, 'true', $this->url, $this->salt);
828
        if (empty($id)) {
829
830
            return false;
831
        }
832
        $id = intval($id);
833
        Database::update($this->table, array('visibility' => 1), array('id = ? ' => $id));
834
835
        return true;
836
    }
837
@@ 841-850 (lines=10) @@
838
    /**
839
     * Function disabled
840
     */
841
    public function unpublishMeeting($id)
842
    {
843
        //return BigBlueButtonBN::setPublishRecordings($id, 'false', $this->url, $this->salt);
844
        if (empty($id)) {
845
846
            return false;
847
        }
848
        $id = intval($id);
849
        Database::update($this->table, array('visibility' => 0), array('id = ?' => $id));
850
851
        return true;
852
    }
853