| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function populate(Sitemap $sitemap) |
||
| 42 | { |
||
| 43 | $query = $this->getQuery($this->options['model']); |
||
| 44 | |||
| 45 | // apply filters on the query |
||
| 46 | foreach ($this->options['filters'] as $filter) { |
||
| 47 | $query->$filter(); |
||
| 48 | } |
||
| 49 | |||
| 50 | // and populate the sitemap! |
||
| 51 | foreach ($query->find() as $result) { |
||
| 52 | $sitemap->add($this->resultToUrl($result)); |
||
| 53 | } |
||
| 60 | } |
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