| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function getFilenames(): array |
||
| 17 | { |
||
| 18 | $filenames = $this->getEntityManager()->getConnection()->createQueryBuilder() |
||
| 19 | ->from('image') |
||
| 20 | ->select('DISTINCT CONCAT("data/images/", filename)') |
||
| 21 | ->where('filename != ""') |
||
| 22 | ->orderBy('filename')->execute()->fetchAll(PDO::FETCH_COLUMN); |
||
| 23 | |||
| 24 | return $filenames; |
||
| 25 | } |
||
| 46 |