| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | private function emulate($command, ?int $width = null, ?int $height = null, ?int $spacing = null): \Imagick |
||
| 31 | { |
||
| 32 | $canvas = new Canvas($width, $height); |
||
| 33 | |||
| 34 | $canvas->write( |
||
| 35 | $command->getText(), |
||
| 36 | $command->getFontName(), |
||
| 37 | (float) $command->getFontSize(), |
||
| 38 | $command->getRotation(), |
||
| 39 | $command->getAnchor(), |
||
| 40 | $command->isInverted(), |
||
| 41 | $spacing |
||
| 42 | ); |
||
| 43 | |||
| 44 | return $canvas->toImage(); |
||
| 45 | } |
||
| 47 |