add user name rendering

This commit is contained in:
Dennis Eichhorn 2022-03-11 23:15:10 +01:00
parent 288e9d62d6
commit 7456a32a1f

View File

@ -114,6 +114,34 @@ abstract class ViewAbstract implements RenderableInterface
return $text === null ? '' : \htmlspecialchars($text);
}
/**
* Print cli output.
*
* @param ?string $text Text
*
* @return string
*
* @since 1.0.0
*/
public function printCli(?string $text) : string
{
return $text === null ? '' : \escapeshellcmd($text);
}
/**
* Print cli output.
*
* @param ?string $text Text
*
* @return string
*
* @since 1.0.0
*/
public static function cli(?string $text) : string
{
return $text === null ? '' : \escapeshellcmd($text);
}
/**
* Returns all views
*