protected function detectType($html = '') { if (strpos($html, '<link') !== FALSE) { return MinimeeType::Css; } if (strpos($html, '<script') !== FALSE) { return MinimeeType::Js; } return FALSE; }