| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 1 | public function __invoke(UniqueNameFactory $uniqueNameFactory, ClassMetadata $metadata, QueryBuilder $queryBuilder, string $alias, string $order): void |
|
| 22 | { |
||
| 23 | 1 | $sortingByIllustrationExistence = $uniqueNameFactory->createAliasName('sorting'); |
|
| 24 | 1 | $queryBuilder->addSelect('CASE WHEN ' . $alias . '.illustration IS NOT NULL THEN 1 ELSE 0 END AS HIDDEN ' . $sortingByIllustrationExistence); |
|
| 25 | 1 | $queryBuilder->addOrderBy($sortingByIllustrationExistence, $order); |
|
| 26 | } |
||
| 28 |