private static function getSassBundleContent(\stdClass $bundle): string
    {
        $bundleContent = '';
        if (sizeof($bundle->files) == 0) {
            return $bundleContent;
        }
        
        foreach ($bundle->files as $preloaded) {
            if (DEBUG) {
                $bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF;
            }
            $content = File::getContent($preloaded->path);
            $bundleContent .= SassUtils::compileSassContent($content, $preloaded->directory, DIR_PUBLIC) . CHAR_CRLF . CHAR_CRLF;
        }
        
        return $bundleContent;
    }
private static function getSassBundleContent(\stdClass $bundle): string
    {
        $bundleContent = '';
        if (sizeof($bundle->files) == 0) {
            return $bundleContent;
        }
        
        foreach ($bundle->files as $preloaded) {
            if (DEBUG) {
                $bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF;
            }
            $content = File::getContent($preloaded->path);
            $bundleContent .= SassUtils::compileSassContent($content, $preloaded->directory, DIR_PUBLIC) . CHAR_CRLF . CHAR_CRLF;
        }
        
        return $bundleContent;
    }
private static function getSassBundleContent ( \ stdClass $ bundle ) : string { $ bundleContent = '' ; if ( sizeof ( $ bundle -> files ) == 0 ) { return $ bundleContent ; } foreach ( $ bundle -> files as $ preloaded ) { if ( DEBUG ) { $ bundleContent .= "/* {$preloaded->name} */" . CHAR_CRLF ; } $ content = File :: getContent ( $ preloaded -> path ) ; $ bundleContent .= SassUtils :: compileSassContent ( $ content , $ preloaded -> directory , DIR_PUBLIC ) . CHAR_CRLF . CHAR_CRLF ; } return $ bundleContent ; }
Get the full content of a bundle and compile the content of each file using a Sass compiler before appending.

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

@return string The full content of a bundle with each individual file compiled using a Sass compiler.
Get the full content of a bundle and compile the content of each file using a Sass compiler before appending .