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; }