| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function findSortedWidgets(ContainerInterface $container): array |
||
| 32 | { |
||
| 33 | return $this->createQueryBuilder('n') |
||
| 34 | ->select('n', 'w') |
||
| 35 | ->leftJoin('n.widget', 'w') |
||
| 36 | ->where('n.container = :container') |
||
| 37 | ->setParameter('container', $container) |
||
| 38 | ->addOrderBy('n.position') |
||
| 39 | ->getQuery() |
||
| 40 | ->getResult() |
||
| 41 | ; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |