Code Duplication    Length = 7-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

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