Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5971-5982 (lines=12) @@
5968
     * @param int $courseId
5969
     * @return void
5970
     */
5971
    public static function installCourse($sessionId, $courseId)
5972
    {
5973
        return true;
5974
        $toolList = self::getCourseToolToBeManaged();
5975
5976
        foreach ($toolList as $tool) {
5977
            $method = 'add'.$tool;
5978
            if (method_exists(get_class(), $method)) {
5979
                self::$method($sessionId, $courseId);
5980
            }
5981
        }
5982
    }
5983
5984
    /**
5985
     * Calls the methods bound to each tool when a course is unregistered from
@@ 5990-6001 (lines=12) @@
5987
     * @param int $sessionId
5988
     * @param int $courseId
5989
     */
5990
    public static function unInstallCourse($sessionId, $courseId)
5991
    {
5992
        return true;
5993
        $toolList = self::getCourseToolToBeManaged();
5994
5995
        foreach ($toolList as $tool) {
5996
            $method = 'remove'.$tool;
5997
            if (method_exists(get_class(), $method)) {
5998
                self::$method($sessionId, $courseId);
5999
            }
6000
        }
6001
    }
6002
6003
    /**
6004
     * @param int $sessionId