Code Duplication    Length = 1-3 lines in 2 locations

src/Parser/Value.php 2 locations

@@ 77-77 (lines=1) @@
74
	//Reads the last selected value from $data regardless if it's an array or object and overrides $this->data with the new value
75
	private function moveLastToData() {
76
		if (isset($this->data->{$this->last})) $this->data = $this->data->{$this->last};
77
		else if (is_array($this->data) && isset($this->data[$this->last])) $this->data = $this->data[$this->last];
78
	}
79
80
	//Dot moves $data to the next object in $data foo.bar moves the $data pointer from `foo` to `bar`
@@ 162-164 (lines=3) @@
159
		if ($this->autoLookup && isset($this->data->{$this->last})) {
160
			return $this->result->processValue($this->data->{$this->last});
161
		}
162
		else if (is_array($this->data) && isset($this->data[$this->last])) {
163
			return $this->result->processValue($this->data[$this->last]);
164
		}
165
		throw new \UnexpectedValueException('Not found');
166
	}	
167