src/Evaluator.php
public static function compile( array $rules ) {
		// We can't use array_map() for this because it generates a warning if
		// there is an exception.
		foreach ( $rules as &$rule ) {
			$rule = Converter::convert( $rule );
		}

		return $rules;
	}
public static function compile( array $rules ) {
		// We can't use array_map() for this because it generates a warning if
		// there is an exception.
		foreach ( $rules as &$rule ) {
			$rule = Converter::convert( $rule );
		}

		return $rules;
	}
public static function compile ( array $ rules ) { // We can't use array_map() for this because it generates a warning if // there is an exception. foreach ( $ rules as & $ rule ) { $ rule = Converter :: convert ( $ rule ) ; } return $ rules ; }
Convert a set of rules to a compiled form which is optimised for
fast evaluation. The result will be an array of strings, and may be cached.

@param array $rules The rules to compile
@return array An array of compile rules.
Convert a set of rules to a compiled form which is optimised for fast evaluation . The result will be an array of strings and may be cached .