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