| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 80 | public function apply(&$image, $x = 0, $y = 0) |
||
| 81 | { |
||
| 82 | $colorResource = $this->createColor($image); |
||
| 83 | |||
| 84 | if ($this->fontType == self::FONTTYPE_INTERNAL) { |
||
| 85 | imagestring( |
||
| 86 | $image, |
||
| 87 | $this->font, |
||
| 88 | $x, |
||
| 89 | $y, |
||
| 90 | $this->text, |
||
| 91 | $colorResource |
||
| 92 | ); |
||
| 93 | return; |
||
| 94 | } |
||
| 95 | imagettftext( |
||
| 96 | $image, |
||
| 97 | $this->size, |
||
| 98 | $this->angle, |
||
| 99 | $x, |
||
| 100 | $y, |
||
| 101 | $colorResource, |
||
| 102 | $this->font, |
||
| 103 | $this->text |
||
| 104 | ); |
||
| 107 |