Code Duplication    Length = 3-3 lines in 3 locations

src/voku/helper/SimpleHtmlDomNode.php 3 locations

@@ 135-137 (lines=3) @@
132
      return $this->_[HDOM_INFO_OUTER];
133
    }
134
135
    if (isset($this->_[HDOM_INFO_TEXT])) {
136
      return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
137
    }
138
139
    // render begin tag
140
    if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) {
@@ 180-182 (lines=3) @@
177
      return $this->_[HDOM_INFO_INNER];
178
    }
179
180
    if (isset($this->_[HDOM_INFO_TEXT])) {
181
      return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
182
    }
183
184
    $ret = '';
185
    foreach ($this->nodes as $n) {
@@ 313-315 (lines=3) @@
310
  public function makeup()
311
  {
312
    // text, comment, unknown
313
    if (isset($this->_[HDOM_INFO_TEXT])) {
314
      return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
315
    }
316
317
    $ret = '<' . $this->tag;
318
    $i = -1;