/**
* Parses the text for option and environment replacements and replaces the text
*
* @param string $text The text to be parsed
*
* @return string|null The parsed string
*/
private function parseText($text)
{
if (is_string($text)) {
return $this->variables->parse($text);
}
return $text;
}