Code Duplication    Length = 8-8 lines in 2 locations

src/Lists/Tuple.php 2 locations

@@ 91-98 (lines=8) @@
88
	 * Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
89
	 * @param multitype $element
90
	*/
91
	public function indexOf($element)
92
	{
93
		$index = array_search($element, $this->values, true);
94
		
95
		$index = $index ? $index : -1;
96
		
97
		return $index;
98
	}
99
	
100
	/**
101
	 * Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
@@ 104-111 (lines=8) @@
101
	 * Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
102
	 * @param multitype $element
103
	*/
104
	public function lastIndexOf($element)
105
	{
106
		$index = array_search($element, array_reverse($this->values), true);
107
		
108
		$index = $index ? $index : -1;
109
		
110
		return $index;
111
	}
112
	
113
	/**
114
	 * Returns a list iterator over the elements in this list (in proper sequence)