| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function getReportStatus(array $wpCodes) |
||
| 27 | { |
||
| 28 | $query = $this->connection->createQueryBuilder() |
||
| 29 | ->select('DISTINCT(wp_oc)') |
||
| 30 | ->from('caches', 'c') |
||
| 31 | ->innerJoin('c', 'cache_reports', 'cr', 'cr.cacheid = c.cache_id') |
||
| 32 | ->where('wp_oc IN (:wpCodes)') |
||
| 33 | ->andWhere('cr.status IN (:status)') |
||
| 34 | ->setParameter(':wpCodes', $wpCodes, Connection::PARAM_STR_ARRAY) |
||
| 35 | ->setParameter(':status', [1, 2], Connection::PARAM_INT_ARRAY); |
||
| 36 | |||
| 37 | $statement = $query->execute(); |
||
| 38 | |||
| 39 | return $statement->fetchAll(\PDO::FETCH_ASSOC); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |