src/Validator/Validator.php
public function formatError($index, $params)
    {
        $pattern = $this->hasMessage($index) ? $this->getMessage($index) : static::MESSAGE_DEFAULT_PATTERN;

        return vsprintf($pattern, $params);
    }
public function formatError($index, $params)
    {
        $pattern = $this->hasMessage($index) ? $this->getMessage($index) : static::MESSAGE_DEFAULT_PATTERN;

        return vsprintf($pattern, $params);
    }
public function formatError ( $ index , $ params ) { $ pattern = $ this -> hasMessage ( $ index ) ? $ this -> getMessage ( $ index ) : static :: MESSAGE_DEFAULT_PATTERN ; return vsprintf ( $ pattern , $ params ) ; }
Format an error

@param $index
@param $params
@return string
@throws \Exception
Format an error