protected function fetchAssets($templateContents, $section)
    {
        $pattern = sprintf('/BEGIN-%1$s[^\w\s]*[\r\n](.*?)[\r\n][^\w]*END-%1$s/s', $section);
        preg_match($pattern, $templateContents, $matches);
        
        return ( ! empty($matches)) ? explode("\n", $matches[1]) : array();
    }
protected function fetchAssets($templateContents, $section)
    {
        $pattern = sprintf('/BEGIN-%1$s[^\w\s]*[\r\n](.*?)[\r\n][^\w]*END-%1$s/s', $section);
        preg_match($pattern, $templateContents, $matches);
        
        return ( ! empty($matches)) ? explode("\n", $matches[1]) : array();
    }
protected function fetchAssets ( $ templateContents , $ section ) { $ pattern = sprintf ( '/BEGIN-%1$s[^\w\s]*[\r\n](.*?)[\r\n][^\w]*END-%1$s/s' , $ section ) ; preg_match ( $ pattern , $ templateContents , $ matches ) ; return ( ! empty ( $ matches ) ) ? explode ( "\n" , $ matches [ 1 ] ) : array ( ) ; }
Fetches the assets attributes indentified by a section

@param string $templateContents
@param string $section
@return array
Fetches the assets attributes indentified by a section