Code Duplication    Length = 11-11 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 3322-3332 (lines=11) @@
3319
     * Gets the learnpath name/title
3320
     * @return	string	Learnpath name/title
3321
     */
3322
    public function get_name()
3323
    {
3324
        if ($this->debug > 0) {
3325
            error_log('New LP - In learnpath::get_name()', 0);
3326
        }
3327
        if (!empty ($this->name)) {
3328
            return $this->name;
3329
        } else {
3330
            return 'N/A';
3331
        }
3332
    }
3333
3334
    /**
3335
     * Gets a link to the resource from the present location, depending on item ID.
@@ 3730-3740 (lines=11) @@
3727
     * Gets the user ID
3728
     * @return	integer	User ID
3729
     */
3730
    public function get_user_id()
3731
    {
3732
        if ($this->debug > 0) {
3733
            error_log('New LP - In learnpath::get_user_id()', 0);
3734
        }
3735
        if (!empty ($this->user_id)) {
3736
            return $this->user_id;
3737
        } else {
3738
            return false;
3739
        }
3740
    }
3741
3742
    /**
3743
     * Checks if any of the items has an audio element attached