protected static function getScripts(HTML_Head $head) { $match = $head->getElementsBy('tag', 'scripts'); return $match[0]; }
protected static function getScripts(HTML_Head $head) { $match = $head->getElementsBy('tag', 'scripts'); if (empty($match)) { throw new Template_Invalid_Structure_Exception('scripts tag missing in head template'); } return $match[0]; }