Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Redis extends BaseRedis |
||
21 | { |
||
22 | /** |
||
23 | * Get underlying redis connection. |
||
24 | * |
||
25 | * @return null|PhpRedis |
||
26 | */ |
||
27 | public function getConnection() |
||
28 | { |
||
29 | if (!$this->_redis) { |
||
30 | $this->_connect(); |
||
31 | } |
||
32 | |||
33 | return $this->_redis; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the remaining ttl for given key. |
||
38 | * |
||
39 | * @param string $key |
||
40 | * |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getTtl(string $key): int |
||
46 | } |
||
47 | } |
||
48 |
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