Code Duplication    Length = 9-9 lines in 3 locations

src/Archangel.php 3 locations

@@ 77-85 (lines=9) @@
74
75
     * @return object instantiated $this
76
     */
77
    public function addTo($address, $title = '')
78
    {
79
        if (!empty($title)) {
80
            $address = sprintf('"%s" <%s>', $title, $address);
81
        }
82
        array_push($this->to, $address);
83
84
        return $this;
85
    }
86
87
    /**
88
     * Setter method for adding cc recipients
@@ 95-103 (lines=9) @@
92
     *
93
     * @return object instantiated $this
94
     */
95
    public function addCC($address, $title = '')
96
    {
97
        if (!empty($title)) {
98
            $address = sprintf('"%s" <%s>', $title, $address);
99
        }
100
        array_push($this->cc, $address);
101
102
        return $this;
103
    }
104
105
    /**
106
     * Setter method for adding bcc recipients
@@ 113-121 (lines=9) @@
110
     *
111
     * @return object instantiated $this
112
     */
113
    public function addBCC($address, $title = '')
114
    {
115
        if (!empty($title)) {
116
            $address = sprintf('"%s" <%s>', $title, $address);
117
        }
118
        array_push($this->bcc, $address);
119
120
        return $this;
121
    }
122
123
    /**
124
     * Setter method for setting the single 'from' field