| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function translate(ExternalImage $command): iterable |
||
| 29 | { |
||
| 30 | yield from $this->position($command); |
||
| 31 | |||
| 32 | yield from $this->invert($command); |
||
| 33 | |||
| 34 | yield from $this->rotate($command); |
||
| 35 | |||
| 36 | yield \sprintf("PRBUF %d\n", \strlen($data = $command->getData())).$data; |
||
| 37 | |||
| 38 | // reset |
||
| 39 | yield from $this->resetInvert($command); |
||
| 40 | yield from $this->resetRotate($command); |
||
| 41 | } |
||
| 43 |