public static function blockEnd() { // see if we are being called with an open style output buffer if (empty(self::$blockOptions['inBlock'])) { return; } // get the scrip out of the buffer $style = @ob_get_contents(); // clean and restart the buffer @ob_end_clean(); ob_start(); // restore the buffer to its previous state echo self::$outputBuffer; // null our temporary storage self::$outputBuffer = NULL; // get the options $options = self::$blockOptions; self::$blockOptions = array(); // if we didnt recieve anything then move on if (empty($style)) { return; } // process what we got in the style buffer echo self::codeBlock($style, $options); }