| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function findOneById(int $id): ?OODBBean |
||
| 37 | { |
||
| 38 | if (!isset($this->cache[$id])) { |
||
| 39 | $this->logger->debug( |
||
| 40 | get_class($this) . '::findOneById cache miss ' . $id |
||
| 41 | ); |
||
| 42 | $bean = R::findOne($this->tableName, 'id = ? AND active = ?', [$id, 1]); |
||
| 43 | if (count($this->cache) < 1024) { |
||
| 44 | $this->cache[$id] = $bean; |
||
| 45 | } |
||
| 46 | } else { |
||
| 47 | $this->logger->debug( |
||
| 48 | get_class($this) . '::findOneById cache hit ' . $id |
||
| 49 | ); |
||
| 50 | $bean = $this->cache[$id]; |
||
| 51 | } |
||
| 52 | |||
| 53 | return $bean; |
||
| 54 | } |
||
| 68 |
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