Code Duplication    Length = 3-3 lines in 2 locations

src/Accessor.php 2 locations

@@ 82-84 (lines=3) @@
79
            $this->current = $this->current->$isser();
80
        } elseif ($this->isObjectWithMethod($this->current, 'is')) {
81
            $this->current = $this->current->is($key);
82
        } elseif (is_object($this->current) && isset($this->current->$key)) {
83
            $this->current = $this->current->$key;
84
        } else {
85
            return false;
86
        }
87
@@ 152-154 (lines=3) @@
149
150
        if (is_array($this->current) && array_key_exists($key, $this->current)) {
151
            unset($this->current[$key]);
152
        } elseif (is_object($this->current) && isset($this->current->$key)) {
153
            unset($this->current->$key);
154
        } elseif ($this->isObjectWithMethod($this->current, $unsetter)) {
155
            $this->current->$unsetter();
156
        } elseif ($this->isObjectWithMethod($this->current, $remover)) {
157
            $this->current->$remover();