Code Duplication    Length = 6-6 lines in 3 locations

src/voku/helper/SimpleHtmlDom.php 3 locations

@@ 110-115 (lines=6) @@
107
                return $this->node->nodeName;
108
            case 'attr':
109
                return $this->getAllAttributes();
110
            default:
111
                if (\property_exists($this->node, $nameOrig)) {
112
                    return $this->node->{$nameOrig};
113
                }
114
115
                return $this->getAttribute($name);
116
        }
117
    }
118
@@ 149-154 (lines=6) @@
146
            case 'text':
147
            case 'tag':
148
                return true;
149
            default:
150
                if (\property_exists($this->node, $nameOrig)) {
151
                    return isset($this->node->{$nameOrig});
152
                }
153
154
                return $this->hasAttribute($name);
155
        }
156
    }
157
@@ 178-183 (lines=6) @@
175
                return $this->replaceChildWithString($value);
176
            case 'plaintext':
177
                return $this->replaceTextWithString($value);
178
            default:
179
                if (\property_exists($this->node, $nameOrig)) {
180
                    return $this->node->{$nameOrig} = $value;
181
                }
182
183
                return $this->setAttribute($name, $value);
184
        }
185
    }
186