Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
44 | public function handleTransparency($newImage, $image) |
||
45 | { |
||
46 | // Get transparency color's index number |
||
47 | $transparency = $this->getTransparencyIndex($image); |
||
48 | |||
49 | // Is a strange index other than -1 set? |
||
50 | if ($transparency >= 0) { |
||
51 | |||
52 | // deal with alpha channels |
||
53 | $this->prepWithExistingIndex($newImage, $image, $transparency); |
||
54 | |||
59 | } |