src/mako/validator/Validator.php
protected function process(): array
	{
		foreach($this->ruleSets as $field => $ruleSet)
		{
			// Ensure that we don't have any duplicated rules for a field

			$ruleSet = array_unique($ruleSet);

			// Validate field and stop as soon as one of the rules fail

			foreach($ruleSet as $rule)
			{
				if($this->validateField($field, $rule) === false)
				{
					break;
				}
			}
		}

		return [$this->isValid, $this->errors];
	}
protected function process(): array
	{
		foreach($this->ruleSets as $field => $ruleSet)
		{
			// Ensure that we don't have any duplicated rules for a field

			$ruleSet = array_unique($ruleSet);

			// Validate field and stop as soon as one of the rules fail

			foreach($ruleSet as $rule)
			{
				if($this->validateField($field, $rule) === false)
				{
					break;
				}
			}
		}

		return [$this->isValid, $this->errors];
	}
protected function process ( ) : array { foreach ( $ this -> ruleSets as $ field => $ ruleSet ) { // Ensure that we don't have any duplicated rules for a field $ ruleSet = array_unique ( $ ruleSet ) ; // Validate field and stop as soon as one of the rules fail foreach ( $ ruleSet as $ rule ) { if ( $ this -> validateField ( $ field , $ rule ) === false ) { break ; } } } return [ $ this -> isValid , $ this -> errors ] ; }
Processes all validation rules and returns an array containing
the validation status and potential error messages.

@return array
Processes all validation rules and returns an array containing the validation status and potential error messages .