protected function metaTagsAfter(AssetInterface $asset, $rawHtml)
    {
        if ($matches = $this->getMatches($rawHtml, '<meta', true, true)) {
            $last = count($matches[0]) - 1;
            $replacement = sprintf("%s\n%s%s", $matches[0][$last], $matches[1][$last], (string) $asset);

            return Str::replaceFirst($rawHtml, $matches[0][$last], $replacement);
        }

        return $this->headTagEnd($asset, $rawHtml);
    }
protected function metaTagsAfter(AssetInterface $asset, $rawHtml)
    {
        if ($matches = $this->getMatches($rawHtml, '<meta', true, true)) {
            $last = count($matches[0]) - 1;
            $replacement = sprintf("%s\n%s%s", $matches[0][$last], $matches[1][$last], (string) $asset);

            return Str::replaceFirst($rawHtml, $matches[0][$last], $replacement);
        }

        return $this->headTagEnd($asset, $rawHtml);
    }
protected function metaTagsAfter ( AssetInterface $ asset , $ rawHtml ) { if ( $ matches = $ this -> getMatches ( $ rawHtml , '<meta' , true , true ) ) { $ last = count ( $ matches [ 0 ] ) - 1 ; $ replacement = sprintf ( "%s\n%s%s" , $ matches [ 0 ] [ $ last ] , $ matches [ 1 ] [ $ last ] , ( string ) $ asset ) ; return Str :: replaceFirst ( $ rawHtml , $ matches [ 0 ] [ $ last ] , $ replacement ) ; } return $ this -> headTagEnd ( $ asset , $ rawHtml ) ; }
Helper function to insert some HTML into the head section of an HTML page.

@param AssetInterface $asset
@param string         $rawHtml

@return string
Helper function to insert some HTML into the head section of an HTML page .