Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | 4 | public function handleTransparency($newImage, $image): void |
|
|
|||
12 | { |
||
13 | // Set blending mode as false |
||
14 | 4 | imagealphablending($newImage, false); |
|
15 | |||
16 | // Tell it we want to save alpha channel info |
||
17 | 4 | imagesavealpha($newImage, true); |
|
18 | |||
19 | // Set the transparent color |
||
20 | 4 | $color = imagecolorallocatealpha($newImage, 0, 0, 0, 127); |
|
21 | |||
22 | // Fill the image with nothingness |
||
23 | 4 | imagefill($newImage, 0, 0, $color); |
|
24 | } |
||
25 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.