| Conditions | 6 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function parse(Parser $parser): void |
||
| 21 | { |
||
| 22 | $shouldUseLexer = DoctrineOrm::isPre219(); |
||
| 23 | |||
| 24 | $this->customiseFunction(); |
||
| 25 | |||
| 26 | $parser->match($shouldUseLexer ? Lexer::T_IDENTIFIER : TokenType::T_IDENTIFIER); |
||
|
|
|||
| 27 | $parser->match($shouldUseLexer ? Lexer::T_OPEN_PARENTHESIS : TokenType::T_OPEN_PARENTHESIS); |
||
| 28 | |||
| 29 | $this->parseFunction($parser); |
||
| 30 | |||
| 31 | $lexer = $parser->getLexer(); |
||
| 32 | if ($lexer->isNextToken($shouldUseLexer ? Lexer::T_ORDER : TokenType::T_ORDER)) { |
||
| 33 | $this->orderByClause = $parser->OrderByClause(); |
||
| 34 | } |
||
| 35 | |||
| 36 | $parser->match($shouldUseLexer ? Lexer::T_CLOSE_PARENTHESIS : TokenType::T_CLOSE_PARENTHESIS); |
||
| 37 | } |
||
| 46 |