src/Contao/Subscriber/FormatModelLabelSubscriber.php
private function renderSingleValue($label, $args, $maxLength = null)
    {
        // BC: sometimes the label was returned as string in the arguments instead of an array.
        $string = !\is_array($args) ? $args : \vsprintf($label, $args);

        if ((null !== $maxLength) && \strlen($string) > $maxLength) {
            $string = \substr($string, 0, $maxLength);
        }

        return $string;
    }
private function renderSingleValue($label, $args, $maxLength = null)
    {
        // BC: sometimes the label was returned as string in the arguments instead of an array.
        $string = !\is_array($args) ? $args : \vsprintf($label, $args);

        if ((null !== $maxLength) && \strlen($string) > $maxLength) {
            $string = \substr($string, 0, $maxLength);
        }

        return $string;
    }
private function renderSingleValue ( $ label , $ args , $ maxLength = null ) { // BC: sometimes the label was returned as string in the arguments instead of an array. $ string = ! \ is_array ( $ args ) ? $ args : \ vsprintf ( $ label , $ args ) ; if ( ( null !== $ maxLength ) && \ strlen ( $ string ) > $ maxLength ) { $ string = \ substr ( $ string , 0 , $ maxLength ) ; } return $ string ; }
Render as single value.

@param string   $label     The label string.
@param string[] $args      The rendered arguments.
@param null     $maxLength The maximum length for the label or null to allow unlimited.

@return string
Render as single value .