@@ -37,28 +37,28 @@ public function __construct(CSSString $oURL, $iLineNo = 0)
37
37
public static function parse (ParserState $ oParserState )
38
38
{
39
39
$ 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 ;
62
62
}
63
63
64
64
/**
0 commit comments