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

@@ 576-582 (lines=7) @@
573
        $link .= '>';
574
        $linkend = '</a>';
575
576
        if ($withpicto) {
577
            $result .= ($link . img_object(($notooltip ? '' : $label), 'label',
578
                    ($notooltip ? '' : 'class="classfortooltip"')) . $linkend);
579
            if ($withpicto != 2) {
580
                $result .= ' ';
581
            }
582
        }
583
        $result .= $link . $this->idBBC_vols . $linkend;
584
        return $result;
585
    }