Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class FileReader extends InputStreamReader |
||
16 | { |
||
17 | /** |
||
18 | * @var int バッファリングサイズ |
||
19 | */ |
||
20 | private int $bufferSize; |
||
21 | |||
22 | /** |
||
23 | * constructor |
||
24 | * @param mixed $file ファイルオブジェクトまたはファイルパス |
||
25 | * @param int $bufferSize バッファリングサイズ |
||
26 | * @throws InvalidArgumentException |
||
27 | * @throws IOException |
||
28 | */ |
||
29 | 11 | public function __construct($file, int $bufferSize = 8192) |
|
30 | { |
||
31 | 11 | parent::__construct(new FileInputStream($file)); |
|
32 | 11 | $this->bufferSize = $bufferSize; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * ファイルを読み込む |
||
37 | * @return string ファイル内容 |
||
38 | * @throws IOException |
||
39 | */ |
||
40 | 11 | public function read() |
|
48 | } |
||
49 | } |
||
50 |
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