Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 612-621 (lines=10) @@
609
    /**
610
     * Function disabled
611
     */
612
    public function publishMeeting($id)
613
    {
614
        //return BigBlueButtonBN::setPublishRecordings($id, 'true', $this->url, $this->salt);
615
        if (empty($id)) {
616
617
            return false;
618
        }
619
        $id = intval($id);
620
        Database::update($this->table, array('visibility' => 1), array('id = ? ' => $id));
621
622
        return true;
623
    }
624
@@ 628-637 (lines=10) @@
625
    /**
626
     * Function disabled
627
     */
628
    public function unpublishMeeting($id)
629
    {
630
        //return BigBlueButtonBN::setPublishRecordings($id, 'false', $this->url, $this->salt);
631
        if (empty($id)) {
632
            return false;
633
        }
634
        $id = intval($id);
635
        Database::update($this->table, array('visibility' => 0), array('id = ? ' => $id));
636
637
        return true;
638
    }
639
640
    /**