| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class Redis |
||
| 18 | { |
||
| 19 | private $client; |
||
| 20 | |||
| 21 | public function __construct() |
||
| 22 | { |
||
| 23 | Autoloader::register(); |
||
| 24 | |||
| 25 | $this->client = new Client([ |
||
| 26 | 'scheme' => CONF_REDIS_SCHEME, |
||
| 27 | 'host' => CONF_REDIS_HOST, |
||
| 28 | 'port' => CONF_REDIS_PORT, |
||
| 29 | ]); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getClient(): Client |
||
| 33 | { |
||
| 34 | return $this->client; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function __destruct() |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Connect clone. |
||
| 46 | */ |
||
| 47 | final private function __clone() |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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