Total Complexity | 7 |
Total Lines | 73 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class LoggerCache |
||
14 | { |
||
15 | /** |
||
16 | * @var ICache キャッシュドライバ |
||
17 | */ |
||
18 | private $driver; |
||
19 | |||
20 | /** |
||
21 | * @var string キャッシュキー |
||
22 | */ |
||
23 | private $key; |
||
24 | |||
25 | /** |
||
26 | * @var int キャッシュインデックス |
||
27 | */ |
||
28 | private $index; |
||
29 | |||
30 | /** |
||
31 | * constructor |
||
32 | 142 | */ |
|
33 | public function __construct(ICache $driver) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * destructor |
||
42 | 1 | */ |
|
43 | public function __destruct() |
||
44 | 1 | { |
|
45 | 1 | $this->clear(); |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * キャッシュに追加 |
||
50 | * @param string $content キャッシュデータ |
||
51 | 96 | */ |
|
52 | public function add(string $content) |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * キャッシュを返却する |
||
59 | * @return array<string> キャッシュデータ |
||
60 | 1 | */ |
|
61 | public function get() |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * キャッシュデータ数を返却する |
||
73 | * @return int キャッシュデータ数 |
||
74 | 96 | */ |
|
75 | public function length() |
||
76 | 96 | { |
|
77 | return $this->index; |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * キャッシュクリア |
||
82 | */ |
||
83 | public function clear() |
||
86 | } |
||
87 | } |
||
88 |
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