LightnCandy\Exporter::replaceSafeString PHP Method

replaceSafeString() protected static method

Replace SafeString class with alias class name
protected static replaceSafeString ( array\arraystring | integer> $context, string $str ) : string
$context array\arraystring | integer>
$str string the PHP code to be replaced
return string
    protected static function replaceSafeString($context, $str)
    {
        return $context['flags']['standalone'] ? str_replace($context['safestring'], $context['safestringalias'], $str) : $str;
    }