Code Duplication    Length = 11-11 lines in 2 locations

src/Parser/Last.php 1 location

@@ 65-75 (lines=11) @@
62
63
64
	//Applies the current operation to whatever is in $last based on $mode
65
	public function process() {
66
		if ($this->last !== null) {
67
			try {
68
				$value = $this->data->extract($this->last, $this->autoLookup, $this->traversing);
69
				$this->result->processValue($value);
70
			}
71
			catch (\UnexpectedValueException $e) {
72
				$this->processLastUnexpected();
73
			}
74
		}
75
	}
76
77
	private function processLastUnexpected() {
78
		if (!($this->autoLookup || $this->traversing)) {

src/Parser/Value.php 1 location

@@ 157-167 (lines=11) @@
154
	}
155
156
	//Applies the current operation to whatever is in $last based on $mode
157
	private function processLast() {
158
		if ($this->last !== null) {
159
			try {
160
				$value = $this->data->extract($this->last, $this->autoLookup, $this->traversing);
161
				$this->result->processValue($value);
162
			}
163
			catch (\UnexpectedValueException $e) {
164
				$this->processLastUnexpected();
165
			}
166
		}
167
	}
168
169
	private function processLastUnexpected() {
170
		if (!($this->autoLookup || $this->traversing)) {