private static function getPlainBundleContent(\stdClass $bundle, bool $includeNameComment = false): string
    {
        $bundleContent = '';
        if (sizeof($bundle->files) == 0) {
            return $bundleContent;
        }
        
        $bundleContent = '';
        foreach ($bundle->files as $preloaded) {
            if ($includeNameComment) {
                $bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF;
            }
            $content = File::getContent($preloaded->path);
            $bundleContent .= $content . CHAR_CRLF . CHAR_CRLF;
        }
        
        return $bundleContent;
    }
private static function getPlainBundleContent(\stdClass $bundle, bool $includeNameComment = false): string
    {
        $bundleContent = '';
        if (sizeof($bundle->files) == 0) {
            return $bundleContent;
        }
        
        $bundleContent = '';
        foreach ($bundle->files as $preloaded) {
            if ($includeNameComment) {
                $bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF;
            }
            $content = File::getContent($preloaded->path);
            $bundleContent .= $content . CHAR_CRLF . CHAR_CRLF;
        }
        
        return $bundleContent;
    }
private static function getPlainBundleContent ( \ stdClass $ bundle , bool $ includeNameComment = false ) : string { $ bundleContent = '' ; if ( sizeof ( $ bundle -> files ) == 0 ) { return $ bundleContent ; } $ bundleContent = '' ; foreach ( $ bundle -> files as $ preloaded ) { if ( $ includeNameComment ) { $ bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF ; } $ content = File :: getContent ( $ preloaded -> path ) ; $ bundleContent .= $ content . CHAR_CRLF . CHAR_CRLF ; } return $ bundleContent ; }
Get the full content of a bundle as is.

@param \stdClass $bundle
The bundle to get the content of.

@param bool $includeNameComment
Whether to include a comment in the \\/* <filename> *\/ format above each file that is included in the bundle.

@return string The full content of a bundle as is.
Get the full content of a bundle as is .