@@ -37,28 +37,28 @@ public function __construct(CSSString $oURL, $iLineNo = 0)
3737 public static function parse (ParserState $ oParserState )
3838 {
3939 $ oParserState ->setAnchor ();
40- $ sIdentifier = '' ;
41- for ($ i = 0 ; $ i < 3 ; $ i ++) {
42- $ sChar = $ oParserState ->parseCharacter (true );
43- if ($ sChar === null ) {
44- break ;
45- }
46- $ sIdentifier .= $ sChar ;
47- }
48- $ bUseUrl = $ oParserState ->streql ($ sIdentifier , 'url ' );
49- if ($ bUseUrl ) {
50- $ oParserState ->consumeWhiteSpace ();
51- $ oParserState ->consume ('( ' );
52- } else {
53- $ oParserState ->backtrackToAnchor ();
54- }
55- $ oParserState ->consumeWhiteSpace ();
56- $ oResult = new URL (CSSString::parse ($ oParserState ), $ oParserState ->currentLine ());
57- if ($ bUseUrl ) {
58- $ oParserState ->consumeWhiteSpace ();
59- $ oParserState ->consume (') ' );
60- }
61- return $ oResult ;
40+ $ sIdentifier = '' ;
41+ for ($ i = 0 ; $ i < 3 ; $ i ++) {
42+ $ sChar = $ oParserState ->parseCharacter (true );
43+ if ($ sChar === null ) {
44+ break ;
45+ }
46+ $ sIdentifier .= $ sChar ;
47+ }
48+ $ bUseUrl = $ oParserState ->streql ($ sIdentifier , 'url ' );
49+ if ($ bUseUrl ) {
50+ $ oParserState ->consumeWhiteSpace ();
51+ $ oParserState ->consume ('( ' );
52+ } else {
53+ $ oParserState ->backtrackToAnchor ();
54+ }
55+ $ oParserState ->consumeWhiteSpace ();
56+ $ oResult = new URL (CSSString::parse ($ oParserState ), $ oParserState ->currentLine ());
57+ if ($ bUseUrl ) {
58+ $ oParserState ->consumeWhiteSpace ();
59+ $ oParserState ->consume (') ' );
60+ }
61+ return $ oResult ;
6262 }
6363
6464 /**
0 commit comments