Code Duplication    Length = 5-7 lines in 2 locations

class/bbctypes.class.php 1 location

@@ 523-527 (lines=5) @@
520
        $link.= '>';
521
		$linkend='</a>';
522
523
        if ($withpicto)
524
        {
525
            $result.=($link.img_object(($notooltip?'':$label), 'label', ($notooltip?'':'class="classfortooltip"')).$linkend);
526
            if ($withpicto != 2) $result.=' ';
527
		}
528
		$result.= $link . $this->ref . $linkend;
529
		return $result;
530
	}

class/bbcvols.class.php 1 location

@@ 692-698 (lines=7) @@
689
        $link .= '>';
690
        $linkend = '</a>';
691
692
        if ($withpicto) {
693
            $result .= ($link . img_object(($notooltip ? '' : $label), 'label',
694
                    ($notooltip ? '' : 'class="classfortooltip"')) . $linkend);
695
            if ($withpicto != 2) {
696
                $result .= ' ';
697
            }
698
        }
699
        $result .= $link . $this->idBBC_vols . $linkend;
700
        return $result;
701
    }