Code Duplication    Length = 5-6 lines in 2 locations

src/prototype/Prototype.php 2 locations

@@ 168-172 (lines=5) @@
165
166
        $clearcache = false;
167
        // get current value for $name, to check if it has a getter and/or a setter
168
        if ( array_key_exists($name, $this->_ownProperties) ) {
169
            $current = $this->_ownProperties[$name];
170
        } else {
171
            $current = $this->_getPrototypeProperty($name);
172
        }
173
        if ( $valueIsSetterOrGetter ) {
174
            // reconfigure current property
175
            $clearcache = true;
@@ 287-292 (lines=6) @@
284
     */
285
    public function __isset($name)
286
    {
287
        if ( array_key_exists($name, $this->_ownProperties) ) {
288
            return isset($this->_ownProperties[$name]);
289
        } else {
290
            $val = $this->_getPrototypeProperty( $name );
291
            return isset( $val );
292
        }
293
    }
294
295
    /**