Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function stream_open(string $path, string $mode, int $options, &$opened_path): bool |
||
48 | { |
||
49 | $options = stream_context_get_options($this->context); |
||
50 | $stream = $options[static::NAME]['stream'] ?? null; |
||
51 | |||
52 | if (! $stream instanceof StreamInterface || ! $stream->isReadable()) { |
||
53 | return false; |
||
54 | } |
||
55 | |||
56 | $this->stream = $stream; |
||
57 | |||
58 | return true; |
||
59 | } |
||
60 | |||
89 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.