| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function parse(Token $token): Node|CssNode |
||
| 17 | { |
||
| 18 | $parser = $this->parser; |
||
| 19 | $stream = $parser->getStream(); |
||
| 20 | |||
| 21 | $data = null; |
||
| 22 | |||
| 23 | // keep collecting strings until the block ends |
||
| 24 | while (!$stream->test(Token::BLOCK_END_TYPE)) { |
||
| 25 | $data = $stream->expect(Token::STRING_TYPE)->getValue(); |
||
| 26 | } |
||
| 27 | |||
| 28 | $stream->expect(Token::BLOCK_END_TYPE); |
||
| 29 | |||
| 30 | return new CssNode($data, $token->getLine(), $this->getTag()); |
||
| 31 | } |
||
| 40 | } |