| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function parse(Token $token): ProfilerNode |
||
| 41 | { |
||
| 42 | $lineno = $token->getLine(); |
||
| 43 | $stream = $this->parser->getStream(); |
||
| 44 | $nodes = [ |
||
| 45 | 'profile' => $this->parser->getExpressionParser()->parseExpression(), |
||
| 46 | ]; |
||
| 47 | $stream->expect(Token::BLOCK_END_TYPE); |
||
| 48 | $nodes['body'] = $this->parser->subparse(fn(Token $token): bool => $this->decideProfilerEnd($token), true); |
||
| 49 | $stream->expect(Token::BLOCK_END_TYPE); |
||
| 50 | |||
| 51 | return new ProfilerNode($nodes, [], $lineno, $this->getTag()); |
||
| 52 | } |
||
| 59 |