Code Duplication    Length = 8-8 lines in 2 locations

src/Field.php 2 locations

@@ 271-278 (lines=8) @@
268
269
	}
270
271
	protected function validateRegex( $v ) {
272
273
		if( isset($this->rules['regex']) && !preg_match($this->rules['regex'], $v) )
274
			return Error::REGEX;
275
276
		return Error::NONE;
277
278
	}
279
280
	protected function validateValues( $v ) {
281
@@ 280-287 (lines=8) @@
277
278
	}
279
280
	protected function validateValues( $v ) {
281
282
		if( isset($this->rules['values']) && !in_array($v, $this->rules['values']) )
283
			return Error::VALUE;
284
285
		return Error::NONE;
286
287
	}
288
289
	protected function processRules( array $rules, $container = 'array' ) {
290