Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 632-641 (lines=10) @@
629
    /**
630
     * Function disabled
631
     */
632
    public function publishMeeting($id)
633
    {
634
        //return BigBlueButtonBN::setPublishRecordings($id, 'true', $this->url, $this->salt);
635
        if (empty($id)) {
636
637
            return false;
638
        }
639
        $id = intval($id);
640
        Database::update($this->table, array('visibility' => 1), array('id = ? ' => $id));
641
642
        return true;
643
    }
644
@@ 648-657 (lines=10) @@
645
    /**
646
     * Function disabled
647
     */
648
    public function unpublishMeeting($id)
649
    {
650
        //return BigBlueButtonBN::setPublishRecordings($id, 'false', $this->url, $this->salt);
651
        if (empty($id)) {
652
653
            return false;
654
        }
655
        $id = intval($id);
656
        Database::update($this->table, array('visibility' => 0), array('id = ?' => $id));
657
658
        return true;
659
    }
660