Code Duplication    Length = 4-4 lines in 2 locations

src/MetaCharacters.php 2 locations

@@ 62-65 (lines=4) @@
59
		{
60
			throw new InvalidArgumentException('Meta characters must be represented by exactly one character');
61
		}
62
		if (@preg_match('(' . $expr . ')u', '') === false)
63
		{
64
			throw new InvalidArgumentException("Invalid expression '" . $expr . "'");
65
		}
66
67
		$inputValue = $split[0];
68
		$metaValue  = $this->computeValue($expr);
@@ 256-259 (lines=4) @@
253
	*/
254
	protected function validateExpr($expr)
255
	{
256
		if (@preg_match('(' . $expr . ')u', '') === false)
257
		{
258
			throw new InvalidArgumentException("Invalid expression '" . $expr . "'");
259
		}
260
	}
261
}