| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | public function compress($content) |
||
| 50 | { |
||
| 51 | $qb = $this->connection->createQueryBuilder(); |
||
| 52 | $qb->select( |
||
| 53 | ['js'] |
||
| 54 | ) |
||
| 55 | ->from('dne_custom_js_css') |
||
| 56 | ->where('active = 1') |
||
| 57 | ->andWhere('FIND_IN_SET(:shopId, shopIds)') |
||
| 58 | ->setParameter('shopId', $this->shop->getId()) |
||
| 59 | ->orderBy('name', 'asc'); |
||
| 60 | |||
| 61 | $scripts = $qb->execute()->fetchAll(\PDO::FETCH_COLUMN); |
||
| 62 | |||
| 63 | foreach ($scripts as $script) { |
||
| 64 | $content .= $script . "\n"; |
||
| 65 | } |
||
| 66 | |||
| 67 | return $this->compressor->compress($content); |
||
| 68 | } |
||
| 70 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths