| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.1406 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 3 | public function __construct($file, bool $isAppend = false, int $bufferSize = null) |
|
| 21 | { |
||
| 22 | 3 | parent::__construct(new FileOutputStream($file, $isAppend)); |
|
| 23 | |||
| 24 | // fwriteのデフォルトバッファリングサイズは8KBなので、指定無しの場合は8KBになる |
||
| 25 | // また、同じストリームに対して出力を行うプロセスが複数ある場合、8KBごとに停止する |
||
| 26 | // see: http://php.net/manual/ja/function.stream-set-write-buffer.php |
||
| 27 | 3 | if ($bufferSize !== null && stream_set_write_buffer($this->stream, $bufferSize) !== 0) { |
|
| 28 | throw new IOException("Failed to change the buffer size."); |
||
| 29 | } |
||
| 41 |
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