| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 19 | public function stream_open(string $path, string $mode, int $options, &$opened_path) : bool |
|
|
1 ignored issue
–
show
|
|||
| 44 | { |
||
| 45 | 19 | $options = stream_context_get_options($this->context); |
|
| 46 | 19 | $stream = $options[static::NAME]['stream'] ?? null; |
|
| 47 | |||
| 48 | 19 | if (!$stream instanceof StreamInterface || !$stream->isReadable()) { |
|
| 49 | 9 | return false; |
|
| 50 | } |
||
| 51 | |||
| 52 | 10 | $this->stream = $stream; |
|
| 53 | |||
| 54 | 10 | return true; |
|
| 55 | } |
||
| 78 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.