| Conditions | 4 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | 3 | public function parse(Parser $parser): void |
|
| 26 | { |
||
| 27 | 3 | $shouldUseLexer = DoctrineOrm::isPre219(); |
|
| 28 | |||
| 29 | 3 | $this->customizeFunction(); |
|
| 30 | |||
| 31 | 3 | $parser->match($shouldUseLexer ? Lexer::T_IDENTIFIER : TokenType::T_IDENTIFIER); |
|
|
|
|||
| 32 | 3 | $parser->match($shouldUseLexer ? Lexer::T_OPEN_PARENTHESIS : TokenType::T_OPEN_PARENTHESIS); |
|
| 33 | |||
| 34 | 3 | $this->parseDistinctClause($parser); |
|
| 35 | 3 | $this->expression = $parser->StringPrimary(); |
|
| 36 | |||
| 37 | 3 | $this->parseOrderByClause($parser); |
|
| 38 | |||
| 39 | 3 | $parser->match($shouldUseLexer ? Lexer::T_CLOSE_PARENTHESIS : TokenType::T_CLOSE_PARENTHESIS); |
|
| 40 | } |
||
| 53 |