src/Crossjoin/Css/Helper/Placeholder.php
public static function removeCommentPlaceholders($text, $deletePlaceholders = false)
    {
        if (is_string($text)) {
            // Fast pre-check, to optimize performance
            if (strpos($text, "_") !== false) {
                $removeStringPlaceholders = function ($matches) use ($deletePlaceholders) {
                    if ($deletePlaceholders === true) {
                        if (isset(self::$replacements[$matches[1]])) {
                            unset(self::$replacements[$matches[1]]);
                        }
                    }
                    return "";
                };
                $text = preg_replace_callback('/(?:_COMMENT_([a-f0-9]{32})_)/', $removeStringPlaceholders, $text);
            }
            return $text;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($text). "' for argument 'text' given."
            );
        }
    }
public static function removeCommentPlaceholders($text, $deletePlaceholders = false)
    {
        if (is_string($text)) {
            // Fast pre-check, to optimize performance
            if (strpos($text, "_") !== false) {
                $removeStringPlaceholders = function ($matches) use ($deletePlaceholders) {
                    if ($deletePlaceholders === true) {
                        if (isset(self::$replacements[$matches[1]])) {
                            unset(self::$replacements[$matches[1]]);
                        }
                    }
                    return "";
                };
                $text = preg_replace_callback('/(?:_COMMENT_([a-f0-9]{32})_)/', $removeStringPlaceholders, $text);
            }
            return $text;
        } else {
            throw new \InvalidArgumentException(
                "Invalid type '" . gettype($text). "' for argument 'text' given."
            );
        }
    }
public static function removeCommentPlaceholders ( $ text , $ deletePlaceholders = false ) { if ( is_string ( $ text ) ) { // Fast pre-check, to optimize performance if ( strpos ( $ text , "_" ) !== false ) { $ removeStringPlaceholders = function ( $ matches ) use ( $ deletePlaceholders ) { if ( $ deletePlaceholders === true ) { if ( isset ( self :: $ replacements [ $ matches [ 1 ] ] ) ) { unset ( self :: $ replacements [ $ matches [ 1 ] ] ) ; } } return "" ; } ; $ text = preg_replace_callback ( '/(?:_COMMENT_([a-f0-9]{32})_)/' , $ removeStringPlaceholders , $ text ) ; } return $ text ; } else { throw new \ InvalidArgumentException ( "Invalid type '" . gettype ( $ text ) . "' for argument 'text' given." ) ; } }
Removes the comment place holders from a given text.

@param string $text
@param bool $deletePlaceholders
@return string
Removes the comment place holders from a given text .