| 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 | ||
| 89 | public function apply(&$image, $x = 0, $y = 0) | ||
| 90 |     { | ||
| 91 | $colorResource = $this->createColor($image); | ||
| 92 | |||
| 93 |         if ($this->fontType == self::FONTTYPE_INTERNAL) { | ||
| 94 | imagestring( | ||
| 95 | $image, | ||
| 96 | $this->font, | ||
| 97 | $x, | ||
| 98 | $y, | ||
| 99 | $this->text, | ||
| 100 | $colorResource | ||
| 101 | ); | ||
| 102 | return; | ||
| 103 | } | ||
| 104 | imagettftext( | ||
| 105 | $image, | ||
| 106 | $this->size, | ||
| 107 | $this->angle, | ||
| 108 | $x, | ||
| 109 | $y, | ||
| 110 | $colorResource, | ||
| 111 | $this->font, | ||
| 112 | $this->text | ||
| 113 | ); | ||
| 116 | 
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.