Themosis\Asset\Asset::parseMixed PHP Method

parseMixed() protected method

Parse the mixed argument.
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;
    }