Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function findOneById(int $id): ?OODBBean |
||
22 | { |
||
23 | if (!isset($this->cache[$id])) { |
||
24 | $this->logger->debug(get_class($this) . '::findOneById cache miss ' . $id); |
||
25 | $bean = R::findOne($this->tableName, 'id = ? AND active = ?', [$id, 1]); |
||
26 | if (count($this->cache) < 1024) { |
||
27 | $this->cache[$id] = $bean; |
||
28 | } |
||
29 | } else { |
||
30 | $this->logger->debug(get_class($this) . '::findOneById cache hit ' . $id); |
||
31 | $bean = $this->cache[$id]; |
||
32 | } |
||
33 | |||
34 | return $bean; |
||
35 | } |
||
37 |
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