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