Code Duplication    Length = 5-7 lines in 2 locations

class/bbctypes.class.php 1 location

@@ 492-496 (lines=5) @@
489
        $link .= '>';
490
        $linkend = '</a>';
491
492
        if ($withpicto) {
493
            $result .= ($link . img_object(($notooltip ? '' : $label), 'label',
494
                    ($notooltip ? '' : 'class="classfortooltip"')) . $linkend);
495
            if ($withpicto != 2) {
496
                $result .= ' ';
497
            }
498
        }
499
        $result .= $link . $this->ref . $linkend;

class/bbcvols.class.php 1 location

@@ 600-606 (lines=7) @@
597
        $link .= '>';
598
        $linkend = '</a>';
599
600
        if ($withpicto) {
601
            $result .= ($link . img_object(($notooltip ? '' : $label), 'label',
602
                    ($notooltip ? '' : 'class="classfortooltip"')) . $linkend);
603
            if ($withpicto != 2) {
604
                $result .= ' ';
605
            }
606
        }
607
        $result .= $link . $this->idBBC_vols . $linkend;
608
        return $result;
609
    }