Code Duplication    Length = 12-12 lines in 2 locations

main/inc/lib/sessionmanager.lib.php 2 locations

@@ 5739-5750 (lines=12) @@
5736
     * @param int $courseId
5737
     * @return void
5738
     */
5739
    public static function installCourse($sessionId, $courseId)
5740
    {
5741
        return true;
5742
        $toolList = self::getCourseToolToBeManaged();
5743
5744
        foreach ($toolList as $tool) {
5745
            $method = 'add' . $tool;
5746
            if (method_exists(get_class(), $method)) {
5747
                self::$method($sessionId, $courseId);
5748
            }
5749
        }
5750
    }
5751
5752
    /**
5753
     * Calls the methods bound to each tool when a course is unregistered from
@@ 5758-5769 (lines=12) @@
5755
     * @param int $sessionId
5756
     * @param int $courseId
5757
     */
5758
    public static function unInstallCourse($sessionId, $courseId)
5759
    {
5760
        return true;
5761
        $toolList = self::getCourseToolToBeManaged();
5762
5763
        foreach ($toolList as $tool) {
5764
            $method = 'remove' . $tool;
5765
            if (method_exists(get_class(), $method)) {
5766
                self::$method($sessionId, $courseId);
5767
            }
5768
        }
5769
    }
5770
5771
    /**
5772
     * @param int $sessionId