Code Duplication    Length = 5-7 lines in 2 locations

class/bbcvols.class.php 1 location

@@ 728-734 (lines=7) @@
725
        $link .= '>';
726
        $linkend = '</a>';
727
728
        if ($withpicto) {
729
            $result .= ($link . img_object(($notooltip ? '' : $label), 'label',
730
                    ($notooltip ? '' : 'class="classfortooltip"')) . $linkend);
731
            if ($withpicto != 2) {
732
                $result .= ' ';
733
            }
734
        }
735
        $result .= $link . $this->idBBC_vols . $linkend;
736
        return $result;
737
    }

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
	}