Code Duplication    Length = 10-11 lines in 2 locations

src/Mouf/Mail.php 1 location

@@ 120-130 (lines=11) @@
117
     *
118
     * @return string
119
     */
120
    public function getBodyHtml():string
121
    {
122
        if ($this->css) {
123
            $emogrifier = new Emogrifier($this->getBodyHtmlBeforeEmogrify(), $this->css);
124
            $finalHtml = $emogrifier->emogrify();
125
        } else {
126
            $finalHtml = $this->getBodyHtmlBeforeEmogrify();
127
        }
128
129
        return $finalHtml;
130
    }
131
132
    /**
133
     * The mail html body.

src/Mouf/Utils/Mailer/Mail.php 1 location

@@ 67-76 (lines=10) @@
64
	 *
65
	 * @return string
66
	 */
67
	public function getBodyHtml() {
68
		if ($this->css) {
69
			$emogrifier = new Emogrifier($this->getBodyHtmlBeforeEmogrify(), $this->css);
70
			$finalHtml = $emogrifier->emogrify();
71
		} else {
72
			$finalHtml = $this->getBodyHtmlBeforeEmogrify();
73
		}
74
		
75
		return $finalHtml;
76
	}
77
78
	/**
79
	 * The mail html body.