Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 684-693 (lines=10) @@
681
    /**
682
     * Function disabled
683
     */
684
    public function publishMeeting($id)
685
    {
686
        //return BigBlueButtonBN::setPublishRecordings($id, 'true', $this->url, $this->salt);
687
        if (empty($id)) {
688
689
            return false;
690
        }
691
        $id = intval($id);
692
        Database::update($this->table, array('visibility' => 1), array('id = ? ' => $id));
693
694
        return true;
695
    }
696
@@ 700-709 (lines=10) @@
697
    /**
698
     * Function disabled
699
     */
700
    public function unpublishMeeting($id)
701
    {
702
        //return BigBlueButtonBN::setPublishRecordings($id, 'false', $this->url, $this->salt);
703
        if (empty($id)) {
704
705
            return false;
706
        }
707
        $id = intval($id);
708
        Database::update($this->table, array('visibility' => 0), array('id = ?' => $id));
709
710
        return true;
711
    }
712