Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5855-5866 (lines=12) @@
5852
     * @param int $courseId
5853
     * @return void
5854
     */
5855
    public static function installCourse($sessionId, $courseId)
5856
    {
5857
        return true;
5858
        $toolList = self::getCourseToolToBeManaged();
5859
5860
        foreach ($toolList as $tool) {
5861
            $method = 'add' . $tool;
5862
            if (method_exists(get_class(), $method)) {
5863
                self::$method($sessionId, $courseId);
5864
            }
5865
        }
5866
    }
5867
5868
    /**
5869
     * Calls the methods bound to each tool when a course is unregistered from
@@ 5874-5885 (lines=12) @@
5871
     * @param int $sessionId
5872
     * @param int $courseId
5873
     */
5874
    public static function unInstallCourse($sessionId, $courseId)
5875
    {
5876
        return true;
5877
        $toolList = self::getCourseToolToBeManaged();
5878
5879
        foreach ($toolList as $tool) {
5880
            $method = 'remove' . $tool;
5881
            if (method_exists(get_class(), $method)) {
5882
                self::$method($sessionId, $courseId);
5883
            }
5884
        }
5885
    }
5886
5887
    /**
5888
     * @param int $sessionId