Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
43 | 24 | public function stream_open(string $path, string $mode, int $options, &$opened_path) : bool |
|
1 ignored issue
–
show
|
|||
44 | { |
||
45 | 24 | $options = stream_context_get_options($this->context); |
|
46 | 24 | $stream = $options[static::NAME]['stream'] ?? null; |
|
47 | |||
48 | 24 | if (!$stream instanceof StreamInterface || !$stream->isReadable()) { |
|
49 | 9 | return false; |
|
50 | } |
||
51 | |||
52 | 15 | $this->stream = $stream; |
|
53 | |||
54 | 15 | 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.