Code Duplication    Length = 6-6 lines in 3 locations

src/voku/helper/SimpleHtmlDom.php 3 locations

@@ 128-133 (lines=6) @@
125
                return $this->node->nodeName;
126
            case 'attr':
127
                return $this->getAllAttributes();
128
            default:
129
                if (\property_exists($this->node, $nameOrig)) {
130
                    return $this->node->{$nameOrig};
131
                }
132
133
                return $this->getAttribute($name);
134
        }
135
    }
136
@@ 167-172 (lines=6) @@
164
            case 'text':
165
            case 'tag':
166
                return true;
167
            default:
168
                if (\property_exists($this->node, $nameOrig)) {
169
                    return isset($this->node->{$nameOrig});
170
                }
171
172
                return $this->hasAttribute($name);
173
        }
174
    }
175
@@ 196-201 (lines=6) @@
193
                return $this->replaceChildWithString($value);
194
            case 'plaintext':
195
                return $this->replaceTextWithString($value);
196
            default:
197
                if (\property_exists($this->node, $nameOrig)) {
198
                    return $this->node->{$nameOrig} = $value;
199
                }
200
201
                return $this->setAttribute($name, $value);
202
        }
203
    }
204