Code Duplication    Length = 7-7 lines in 2 locations

classes/Email/Envelope.php 2 locations

@@ 107-113 (lines=7) @@
104
    return $this->subject;
105
  }
106
107
  public function contentType($value=null){
108
    if ($value!==null && $value) {
109
      $this->compiled_body = null;
110
      $this->contentType = $value;
111
    } else if ($value===false) $this->contentType = false;
112
    return $this->contentType;
113
  }
114
115
  public function message($value=null){
116
    if ($value!==null && $value) {
@@ 115-121 (lines=7) @@
112
    return $this->contentType;
113
  }
114
115
  public function message($value=null){
116
    if ($value!==null && $value) {
117
      $this->compiled_body = null;
118
      $this->message = $value;
119
    } else if ($value===false) $this->message = false;
120
    return $this->message;
121
  }
122
123
  public function attach($file){
124
    $this->compiled_body = null;