Conditions | 6 |
Paths | 4 |
Total Lines | 22 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function isIndexable(DataObject $obj): bool |
||
29 | { |
||
30 | // check if is a valid DataObject that has been persisted to the database |
||
31 | if (is_null($obj) || !$obj->ID) { |
||
32 | return false; |
||
33 | } |
||
34 | |||
35 | $key = $this->getCacheKey($obj); |
||
36 | if (isset($this->cache[$key])) { |
||
37 | return $this->cache[$key]; |
||
38 | } |
||
39 | |||
40 | $value = true; |
||
41 | |||
42 | // This will also call $obj->getShowInSearch() if it exists |
||
43 | if (isset($obj->ShowInSearch) && !$obj->ShowInSearch) { |
||
44 | $value = false; |
||
45 | } |
||
46 | |||
47 | $this->extend('updateIsIndexable', $obj, $value); |
||
48 | $this->cache[$key] = $value; |
||
49 | return $value; |
||
50 | } |
||
59 |
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