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