| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 6 | public function calculateSize($text, $font, $fontSize, $angle = 0) |
|
| 29 | { |
||
| 30 | 6 | $imagineFont = $this->fontsFactory->getImagineFont($font, $fontSize); |
|
| 31 | 6 | $imagineBox = $imagineFont->box($text, $angle); |
|
| 32 | 6 | return new Box(0, 0, $imagineBox->getWidth(), $imagineBox->getHeight()); |
|
| 33 | } |
||
| 34 | } |
||
| 35 |