Code Duplication    Length = 3-3 lines in 5 locations

classes/Email/Envelope.php 5 locations

@@ 65-67 (lines=3) @@
62
  }
63
64
  public function from($value=null){
65
    if ($value!==null && $value) {
66
      $this->add_emails($this->from, $value, false);
67
    } else if ($value===false) $this->from = '';
68
    return $this->from;
69
  }
70
@@ 72-74 (lines=3) @@
69
  }
70
71
  public function to($value=null){
72
    if ($value!==null && $value) {
73
      $this->add_emails($this->to, $value);
74
    } else if ($value===false) $this->to = [];
75
    return $this->to;
76
  }
77
@@ 79-81 (lines=3) @@
76
  }
77
78
  public function cc($value=null){
79
    if ($value!==null && $value) {
80
      $this->add_emails($this->cc, $value);
81
    } else if ($value===false) $this->cc = [];
82
    return $this->cc;
83
  }
84
@@ 86-88 (lines=3) @@
83
  }
84
85
  public function bcc($value=null){
86
    if ($value!==null && $value) {
87
      $this->add_emails($this->bcc, $value);
88
    } else if ($value===false) $this->bcc = [];
89
    return $this->bcc;
90
  }
91
@@ 93-95 (lines=3) @@
90
  }
91
92
  public function replyTo($value=null){
93
    if ($value!==null && $value) {
94
      $this->add_emails($this->replyTo, $value, false);
95
    } else if ($value===false) $this->replyTo = '';
96
    return $this->replyTo;
97
  }
98