protected function parseTemplateContent($result, $fileName)
    {
        $content = array_get($result, 'content');

        $processed = FileParser::parse($content);

        $content = [
            'fileName' => $fileName,
            'mTime'    => array_get($result, 'mTime'),
            'content'  => $content,
            'markup'   => $processed['markup'],
            'code'     => $processed['code'],
        ];

        if (!empty($processed['data']))
            $content = $content + $processed['data'];

        return $content;
    }
protected function parseTemplateContent($result, $fileName)
    {
        $content = array_get($result, 'content');

        $processed = FileParser::parse($content);

        $content = [
            'fileName' => $fileName,
            'mTime'    => array_get($result, 'mTime'),
            'content'  => $content,
            'markup'   => $processed['markup'],
            'code'     => $processed['code'],
        ];

        if (!empty($processed['data']))
            $content = $content + $processed['data'];

        return $content;
    }
protected function parseTemplateContent ( $ result , $ fileName ) { $ content = array_get ( $ result , 'content' ) ; $ processed = FileParser :: parse ( $ content ) ; $ content = [ 'fileName' => $ fileName , 'mTime' => array_get ( $ result , 'mTime' ) , 'content' => $ content , 'markup' => $ processed [ 'markup' ] , 'code' => $ processed [ 'code' ] , ] ; if ( ! empty ( $ processed [ 'data' ] ) ) $ content = $ content + $ processed [ 'data' ] ; return $ content ; }
Helper to break down template content in to a useful array.

@param $result
@param $fileName

@return array
Helper to break down template content in to a useful array .