Code Duplication    Length = 3-3 lines in 2 locations

src/Starkerxp/CampagneBundle/Render/OctosendHtmlRender.php 1 location

@@ 57-59 (lines=3) @@
54
55
    protected function retournerLaChaine($type, $lien, $texte, $style = null)
56
    {
57
        if ($type == "unsub") {
58
            return "<a href='{{unsubscribe:".$lien."}}' style='".$style."' title='Désinscription'>".$texte.'</a>';
59
        }
60
61
        return "<a href='{{click:".$lien."}}' style='".$style."'>".$texte.'</a>';;
62
    }

src/Starkerxp/CampagneBundle/Render/OctosendTxtRender.php 1 location

@@ 49-51 (lines=3) @@
46
47
    protected function retournerLaChaine($type, $lien, $texte, $style = null)
48
    {
49
        if ($type == "unsub") {
50
            return "<a href='{{unsubscribe:".$lien."}}' style='".$style."' title='Désinscription'>".$texte.'</a>';
51
        }
52
53
        return (!empty($texte) && $texte != 'Lien' ? '['.$texte.']' : '').' {{click:'.$lien.'}}';
54
    }