Twig/Extension/EchoExtension.php
public function wrap($str, $wrap)
    {
        return (is_string($str) && $str !== '') ? $wrap.$str.$wrap : $str;
    }
public function wrap($str, $wrap)
    {
        return (is_string($str) && $str !== '') ? $wrap.$str.$wrap : $str;
    }
public function wrap ( $ str , $ wrap ) { return ( is_string ( $ str ) && $ str !== '' ) ? $ wrap . $ str . $ wrap : $ str ; }
Wrap string around with given string only if string is not empty

@param string $str
@param string $wrap
@return string
Wrap string around with given string only if string is not empty