Code Duplication    Length = 7-7 lines in 2 locations

lib/Command/Index.php 1 location

@@ 725-731 (lines=7) @@
722
	 */
723
	private function getNavigationResult($pos, $isFirst, $isLast) {
724
725
		if ($pos === 0) {
726
			if ($this->navigateLastResult === true) {
727
				return end($this->results);
728
			} else {
729
				return current($this->results);
730
			}
731
		}
732
733
		$this->navigateLastResult = false;
734
		if ($pos === -99) {

lib/Command/Live.php 1 location

@@ 606-612 (lines=7) @@
603
	 */
604
	private function getNavigationResult($pos, $isFirst, $isLast) {
605
606
		if ($pos === 0) {
607
			if ($this->navigateLastResult === true) {
608
				return end($this->results);
609
			} else {
610
				return current($this->results);
611
			}
612
		}
613
614
		$this->navigateLastResult = false;
615
		if ($pos === -99) {