Code Duplication    Length = 9-9 lines in 2 locations

src/Notify/Email.php 2 locations

@@ 45-53 (lines=9) @@
42
     *
43
     * @return  array
44
     */
45
    public function sendActivationMessage()
46
    {
47
        $macros  = new Macros($this->_data);
48
        $message = $this->_params->get('msg_account_activate_msg');
49
        $message = $macros->text($message);
50
        $subject = $this->_params->get('msg_account_activate_subject');
51
52
        return $this->send($subject, $message, $this->_data->email, null, $this->_getFromMail());
53
    }
54
55
    /**
56
     * Send user create account profile message / set password.
@@ 60-68 (lines=9) @@
57
     *
58
     * @return  array
59
     */
60
    public function sendCreateMessage()
61
    {
62
        $macros  = new Macros($this->_data);
63
        $message = $this->_params->get('msg_account_create_msg');
64
        $message = $macros->text($message);
65
        $subject = $this->_params->get('msg_account_create_subject');
66
67
        return $this->send($subject, $message, $this->_data->email, null, $this->_getFromMail());
68
    }
69
70
    /**
71
     * Constructor hook method.