Code Duplication    Length = 7-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 3855-3861 (lines=7) @@
3852
            list($name, $address) = $this->getMail()->address_split($address);
3853
            $this->getMail()->AddAddress($address, $name);
3854
        }
3855
        if (isset($p['cc'])) {
3856
            $p['cc'] = explode(',', $p['cc']);
3857
            foreach ($p['cc'] as $address) {
3858
                list($name, $address) = $this->getMail()->address_split($address);
3859
                $this->getMail()->AddCC($address, $name);
3860
            }
3861
        }
3862
        if (isset($p['bcc'])) {
3863
            $p['bcc'] = explode(',', $p['bcc']);
3864
            foreach ($p['bcc'] as $address) {
@@ 3862-3868 (lines=7) @@
3859
                $this->getMail()->AddCC($address, $name);
3860
            }
3861
        }
3862
        if (isset($p['bcc'])) {
3863
            $p['bcc'] = explode(',', $p['bcc']);
3864
            foreach ($p['bcc'] as $address) {
3865
                list($name, $address) = $this->getMail()->address_split($address);
3866
                $this->getMail()->AddBCC($address, $name);
3867
            }
3868
        }
3869
        if (isset($p['from']) && strpos($p['from'], '<') !== false && substr($p['from'], -1) === '>') {
3870
            list($p['fromname'], $p['from']) = $this->getMail()->address_split($p['from']);
3871
        }