Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5758-5769 (lines=12) @@
5755
     * @param int $courseId
5756
     * @return void
5757
     */
5758
    public static function installCourse($sessionId, $courseId)
5759
    {
5760
        return true;
5761
        $toolList = self::getCourseToolToBeManaged();
5762
5763
        foreach ($toolList as $tool) {
5764
            $method = 'add' . $tool;
5765
            if (method_exists(get_class(), $method)) {
5766
                self::$method($sessionId, $courseId);
5767
            }
5768
        }
5769
    }
5770
5771
    /**
5772
     * Calls the methods bound to each tool when a course is unregistered from
@@ 5777-5788 (lines=12) @@
5774
     * @param int $sessionId
5775
     * @param int $courseId
5776
     */
5777
    public static function unInstallCourse($sessionId, $courseId)
5778
    {
5779
        return true;
5780
        $toolList = self::getCourseToolToBeManaged();
5781
5782
        foreach ($toolList as $tool) {
5783
            $method = 'remove' . $tool;
5784
            if (method_exists(get_class(), $method)) {
5785
                self::$method($sessionId, $courseId);
5786
            }
5787
        }
5788
    }
5789
5790
    /**
5791
     * @param int $sessionId