Code Duplication    Length = 8-8 lines in 2 locations

src/Lists/ArrayList.php 1 location

@@ 326-333 (lines=8) @@
323
	 * {@inheritDoc}
324
	 * @see ArrayAccess::offsetExists()
325
	 */
326
	public function offsetExists($offset)
327
	{
328
		if(!is_int($offset) || $offset >= $this->size() || $offset < 0) {
329
			return false;
330
		} else {
331
			return true;
332
		}
333
	}
334
	
335
	/**
336
	 *

src/Lists/Tuple.php 1 location

@@ 151-158 (lines=8) @@
148
	 * {@inheritDoc}
149
	 * @see ArrayAccess::offsetExists()
150
	 */
151
	public function offsetExists($offset)
152
	{
153
		if(!is_int($offset) || $offset >= $this->size() || $offset < 0) {
154
			return false;
155
		} else {
156
			return true;
157
		}
158
	}
159
	
160
	/**
161
	 *