| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 26 | public function emit(): \Generator |
|
| 44 | { |
||
| 45 | 26 | foreach ($this->toEmit as $name => $argument) { |
|
| 46 | 22 | if ($this->isArgumentEmitted($argument)) { |
|
| 47 | 1 | continue; |
|
| 48 | } |
||
| 49 | 22 | $this->emittedArguments[$name] = $argument; |
|
| 50 | 22 | yield $name => $argument; |
|
| 51 | 22 | unset($this->toEmit[$name]); |
|
| 52 | } |
||
| 60 |