Code Duplication    Length = 7-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 3829-3835 (lines=7) @@
3826
            list($name, $address) = $this->getMail()->address_split($address);
3827
            $this->getMail()->AddAddress($address, $name);
3828
        }
3829
        if (isset($p['cc'])) {
3830
            $p['cc'] = explode(',', $p['cc']);
3831
            foreach ($p['cc'] as $address) {
3832
                list($name, $address) = $this->getMail()->address_split($address);
3833
                $this->getMail()->AddCC($address, $name);
3834
            }
3835
        }
3836
        if (isset($p['bcc'])) {
3837
            $p['bcc'] = explode(',', $p['bcc']);
3838
            foreach ($p['bcc'] as $address) {
@@ 3836-3842 (lines=7) @@
3833
                $this->getMail()->AddCC($address, $name);
3834
            }
3835
        }
3836
        if (isset($p['bcc'])) {
3837
            $p['bcc'] = explode(',', $p['bcc']);
3838
            foreach ($p['bcc'] as $address) {
3839
                list($name, $address) = $this->getMail()->address_split($address);
3840
                $this->getMail()->AddBCC($address, $name);
3841
            }
3842
        }
3843
        if (isset($p['from']) && strpos($p['from'], '<') !== false && substr($p['from'], -1) === '>') {
3844
            list($p['fromname'], $p['from']) = $this->getMail()->address_split($p['from']);
3845
        }