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