Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function setTemplate(string|array $templateCandidates): static |
||
18 | { |
||
19 | parent::setTemplate($templateCandidates); |
||
20 | |||
21 | $themes = SSViewer::get_themes(); |
||
22 | |||
23 | $cacheAdapter = ThemeResourceLoader::inst()->getCache(); |
||
24 | $cacheKey = 'findTemplate_' . md5(json_encode($templateCandidates) . json_encode($themes)); |
||
25 | |||
26 | // Look for a cached result for this data set |
||
27 | if ($cacheAdapter->has($cacheKey)) { |
||
28 | $this->selectedTemplatePath = $cacheAdapter->get($cacheKey); |
||
29 | } |
||
30 | |||
31 | return $this; |
||
32 | } |
||
50 |
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