| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | 10 | public function stream_open(string $path, string $mode, int $options, &$opened_path): bool |
|
| 47 | { |
||
| 48 | 10 | $options = stream_context_get_options($this->context); |
|
| 49 | |||
| 50 | 10 | $this->stream = $options[static::NAME]['stream'] ?? null; |
|
| 51 | |||
| 52 | 10 | return $this->stream instanceof StreamInterface && $this->stream->isReadable(); |
|
| 53 | } |
||
| 76 |