Code Duplication    Length = 7-9 lines in 2 locations

manager/includes/src/Mail.php 2 locations

@@ 216-222 (lines=7) @@
213
        if ($this->Sender != '' && strlen(ini_get('safe_mode')) < 1) {
214
            $old_from = ini_get('sendmail_from');
215
            ini_set('sendmail_from', $this->Sender);
216
            if ($this->SingleTo === true && count($toArr) > 1) {
217
                foreach ($toArr as $key => $val) {
218
                    $rt = @mail($val, $this->Subject, $body, $header, $params);
219
                }
220
            } else {
221
                $rt = @mail($to, $this->Subject, $body, $header, $params);
222
            }
223
        } else {
224
            if ($this->SingleTo === true && count($toArr) > 1) {
225
                foreach ($toArr as $key => $val) {
@@ 223-231 (lines=9) @@
220
            } else {
221
                $rt = @mail($to, $this->Subject, $body, $header, $params);
222
            }
223
        } else {
224
            if ($this->SingleTo === true && count($toArr) > 1) {
225
                foreach ($toArr as $key => $val) {
226
                    $rt = @mail($val, $this->Subject, $body, $header, $params);
227
                }
228
            } else {
229
                $rt = @mail($to, $this->Subject, $body, $header);
230
            }
231
        }
232
233
        if (isset($old_from)) {
234
            ini_set('sendmail_from', $old_from);