Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function analyze(iterable $opcodes): iterable |
||
37 | { |
||
38 | foreach ($opcodes as $opcode) { |
||
39 | $priority = self::PRIORITIES[$opcode->getOperation()] ?? 0; |
||
40 | |||
41 | $this->priority($priority)->push($opcode); |
||
42 | } |
||
43 | |||
44 | foreach ($this->priorities as $queue) { |
||
45 | yield from $queue; |
||
46 | } |
||
47 | } |
||
48 | |||
64 |