protected parseMixed ( $mixed ) : string | boolean | ||
$mixed | ||
return | string | boolean |
protected function parseMixed($mixed)
{
if ('style' === $this->type) {
$mixed = is_string($mixed) && !empty($mixed) ? $mixed : 'all';
} elseif ('script' === $this->type) {
$mixed = is_bool($mixed) ? $mixed : false;
}
return $mixed;
}