Code Duplication    Length = 2-2 lines in 2 locations

src/Field.php 2 locations

@@ 249-250 (lines=2) @@
246
247
	protected function validateRange( $v ) {
248
249
		if( isset($this->rules['min']) && $v && ($v < $this->rules['min']) )
250
			return Error::MIN;
251
252
		if( isset($this->rules['max']) && $v && ($v > $this->rules['max']) )
253
			return Error::MAX;
@@ 252-253 (lines=2) @@
249
		if( isset($this->rules['min']) && $v && ($v < $this->rules['min']) )
250
			return Error::MIN;
251
252
		if( isset($this->rules['max']) && $v && ($v > $this->rules['max']) )
253
			return Error::MAX;
254
255
		return Error::NONE;
256