Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function translate(InternalImage $command): iterable |
||
31 | { |
||
32 | yield $this->position($command); |
||
33 | |||
34 | yield $this->rotate($command); |
||
35 | |||
36 | yield $this->magnify($command); |
||
37 | |||
38 | yield "PM {$command->getName()}"; |
||
39 | |||
40 | // reset |
||
41 | yield from $this->resetInvert($command); |
||
42 | yield from $this->resetRotate($command); |
||
43 | yield from $this->resetMagnify($command); |
||
44 | } |
||
46 |