lib/Minify/Lines.php
private static function _eolInComment($line, $inComment)
    {
        while (strlen($line)) {
            if ($inComment) {
                // only "*/" can end the comment
                $index = self::_find($line, '*/');
                if ($index === false) {
                    return true;
                }

                // stop comment and keep walking line
                $inComment = false;
                @$line = (string)substr($line, $index + 2);
                continue;
            }

            // look for "//" and "/*"
            $single = self::_find($line, '//');
            $multi = self::_find($line, '/*');
            if ($multi === false) {
                return false;
            }

            if ($single === false || $multi < $single) {
                // start comment and keep walking line
                $inComment = true;
                @$line = (string)substr($line, $multi + 2);
                continue;
            }

            // a single-line comment preceeded it
            return false;
        }

        return $inComment;
    }
private static function _eolInComment($line, $inComment)
    {
        while (strlen($line)) {
            if ($inComment) {
                // only "*/" can end the comment
                $index = self::_find($line, '*/');
                if ($index === false) {
                    return true;
                }

                // stop comment and keep walking line
                $inComment = false;
                @$line = (string)substr($line, $index + 2);
                continue;
            }

            // look for "//" and "/*"
            $single = self::_find($line, '//');
            $multi = self::_find($line, '/*');
            if ($multi === false) {
                return false;
            }

            if ($single === false || $multi < $single) {
                // start comment and keep walking line
                $inComment = true;
                @$line = (string)substr($line, $multi + 2);
                continue;
            }

            // a single-line comment preceeded it
            return false;
        }

        return $inComment;
    }
private static function _eolInComment ( $ line , $ inComment ) { while ( strlen ( $ line ) ) { if ( $ inComment ) { // only "*/" can end the comment $ index = self :: _find ( $ line , '*/' ) ; if ( $ index === false ) { return true ; } // stop comment and keep walking line $ inComment = false ; @ $ line = ( string ) substr ( $ line , $ index + 2 ) ; continue ; } // look for "//" and "/*" $ single = self :: _find ( $ line , '//' ) ; $ multi = self :: _find ( $ line , '/*' ) ; if ( $ multi === false ) { return false ; } if ( $ single === false || $ multi < $ single ) { // start comment and keep walking line $ inComment = true ; @ $ line = ( string ) substr ( $ line , $ multi + 2 ) ; continue ; } // a single-line comment preceeded it return false ; } return $ inComment ; }
Is the parser within a C-style comment at the end of this line?

@param string $line current line of code

@param bool $inComment was the parser in a C-style comment at the
beginning of the previous line?

@return bool
Is the parser within a C - style comment at the end of this line?