| 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 |
||
| 25 | 3 | public function __construct($file, bool $isAppend = false, int $bufferSize = 0) |
|
| 26 | { |
||
| 27 | 3 | parent::__construct(new FileOutputStream($file, $isAppend)); |
|
| 28 | |||
| 29 | // fwriteのデフォルトバッファリングサイズは8KBなので、指定無しの場合は8KBになる |
||
| 30 | // また、同じストリームに対して出力を行うプロセスが複数ある場合、8KBごとに停止する |
||
| 31 | // see: http://php.net/manual/ja/function.stream-set-write-buffer.php |
||
| 32 | 3 | if ($bufferSize > 0 && stream_set_write_buffer($this->stream, $bufferSize) !== 0) { |
|
| 33 | throw new IOException("Failed to change the buffer size."); |
||
| 34 | } |
||
| 46 |
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