| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | 2 | protected function parseDistinctClause(Parser $parser): void |
|
| 17 | { |
||
| 18 | 2 | $shouldUseLexer = DoctrineOrm::isPre219(); |
|
| 19 | 2 | $lexer = $parser->getLexer(); |
|
| 20 | |||
| 21 | 2 | if ($lexer->isNextToken($shouldUseLexer ? Lexer::T_DISTINCT : TokenType::T_DISTINCT)) { |
|
| 22 | 2 | $parser->match($shouldUseLexer ? Lexer::T_DISTINCT : TokenType::T_DISTINCT); |
|
| 23 | 2 | $this->isDistinct = true; |
|
| 24 | } |
||
| 32 |