| Conditions | 5 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 3 |
| 1 | <?php |
||
| 38 | public function wait() |
||
| 39 | { |
||
| 40 | while (!$this->stream->eof()) { |
||
| 41 | $frame = $this->readFrame(); |
||
| 42 | |||
| 43 | if ($frame !== null) { |
||
| 44 | if (!is_array($frame)) { |
||
| 45 | $frame = [$frame]; |
||
| 46 | } |
||
| 47 | |||
| 48 | foreach ($this->onNewFrameCallables as $newFrameCallable) { |
||
| 49 | call_user_func_array($newFrameCallable, $frame); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 61 |