| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | public function onReadable (): void { |
||
| 56 | $data = $this->recv(4096); |
||
| 57 | $frame = new WebSocketFrame($data); |
||
| 58 | if ($frame->isText()) { |
||
| 59 | $this->onText($frame->getPayload()); |
||
| 60 | } |
||
| 61 | elseif ($frame->isBinary()) { |
||
| 62 | $this->onData($frame->getPayload()); |
||
| 63 | } |
||
| 64 | elseif ($frame->isPong()) { |
||
| 65 | $this->onPong(); |
||
| 66 | } |
||
| 67 | elseif ($frame->isClose()) { |
||
| 68 | $this->close(); |
||
| 69 | } |
||
| 91 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.