src/Validator/StringMaskValidator.php
protected function buildErrorString()
    {
        $args = func_get_args();
        $error_str = array_shift($args);
        $ref_suffix = array_shift($args);

        if (!empty($this->mask_reference)) {
            array_push($args, $this->mask_reference);
            $error_str .= $ref_suffix;
        }

        array_unshift($args, $error_str);
        return call_user_func_array('sprintf', $args);
    }
protected function buildErrorString()
    {
        $args = func_get_args();
        $error_str = array_shift($args);
        $ref_suffix = array_shift($args);

        if (!empty($this->mask_reference)) {
            array_push($args, $this->mask_reference);
            $error_str .= $ref_suffix;
        }

        array_unshift($args, $error_str);
        return call_user_func_array('sprintf', $args);
    }
protected function buildErrorString ( ) { $ args = func_get_args ( ) ; $ error_str = array_shift ( $ args ) ; $ ref_suffix = array_shift ( $ args ) ; if ( ! empty ( $ this -> mask_reference ) ) { array_push ( $ args , $ this -> mask_reference ) ; $ error_str .= $ ref_suffix ; } array_unshift ( $ args , $ error_str ) ; return call_user_func_array ( 'sprintf' , $ args ) ; }
Build an error string adding the mask reference if known

@param   string $first The first parameter must be the global error string
@param   string $second The second parameter must be an alternative part of the error string, added if the mask reference is known
@param   mixed $others The rest of the parameters are taken and passed to the finale 'sprintf' function
@return  mixed
Build an error string adding the mask reference if known