Code Duplication    Length = 10-10 lines in 2 locations

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

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