private _compileEchoDefaults ( string $value ) : string | ||
$value | string | |
return | string |
private function _compileEchoDefaults($value)
{
return preg_replace('/^(?=\\$)(.+?)(?:\\s+or\\s+)(.+?)$/s', 'isset($1) ? $1 : $2', $value);
}