Code Duplication    Length = 11-11 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 3331-3341 (lines=11) @@
3328
     * Gets the learnpath name/title
3329
     * @return	string	Learnpath name/title
3330
     */
3331
    public function get_name()
3332
    {
3333
        if ($this->debug > 0) {
3334
            error_log('New LP - In learnpath::get_name()', 0);
3335
        }
3336
        if (!empty ($this->name)) {
3337
            return $this->name;
3338
        } else {
3339
            return 'N/A';
3340
        }
3341
    }
3342
3343
    /**
3344
     * Gets a link to the resource from the present location, depending on item ID.
@@ 3739-3749 (lines=11) @@
3736
     * Gets the user ID
3737
     * @return	integer	User ID
3738
     */
3739
    public function get_user_id()
3740
    {
3741
        if ($this->debug > 0) {
3742
            error_log('New LP - In learnpath::get_user_id()', 0);
3743
        }
3744
        if (!empty ($this->user_id)) {
3745
            return $this->user_id;
3746
        } else {
3747
            return false;
3748
        }
3749
    }
3750
3751
    /**
3752
     * Checks if any of the items has an audio element attached