public static function filterCommentless($content, $callback)
    {
        $result = '';
        foreach (preg_split(static::REGEX_COMMENTS, $content, -1, PREG_SPLIT_DELIM_CAPTURE) as $part) {
            if (!preg_match(static::REGEX_COMMENTS, $part, $match) || $part != $match[0]) {
                $part = call_user_func($callback, $part);
            }

            $result .= $part;
        }

        return $result;
    }
public static function filterCommentless($content, $callback)
    {
        $result = '';
        foreach (preg_split(static::REGEX_COMMENTS, $content, -1, PREG_SPLIT_DELIM_CAPTURE) as $part) {
            if (!preg_match(static::REGEX_COMMENTS, $part, $match) || $part != $match[0]) {
                $part = call_user_func($callback, $part);
            }

            $result .= $part;
        }

        return $result;
    }
public static function filterCommentless ( $ content , $ callback ) { $ result = '' ; foreach ( preg_split ( static :: REGEX_COMMENTS , $ content , - 1 , PREG_SPLIT_DELIM_CAPTURE ) as $ part ) { if ( ! preg_match ( static :: REGEX_COMMENTS , $ part , $ match ) || $ part != $ match [ 0 ] ) { $ part = call_user_func ( $ callback , $ part ) ; } $ result .= $ part ; } return $ result ; }
Filters each non-comment part through a callable.

@param string   $content  The CSS
@param callable $callback A PHP callable

@return string The filtered CSS
Filters each non - comment part through a callable .